When script is waiting WebKit continues processing the webpage
splash_wait(splash_obj, time = 2)
splashr object
number of seconds to wait
Other splash_dsl_functions: splash_add_lua
,
splash_click
, splash_focus
,
splash_go
, splash_har_reset
,
splash_har
, splash_html
,
splash_png
, splash_press
,
splash_release
,
splash_send_keys
,
splash_send_text
# NOT RUN {
splash_local %>%
splash_response_body(TRUE) %>%
splash_user_agent(ua_macos_chrome) %>%
splash_go("https://rud.is/b") %>%
splash_wait(2) %>%
splash_har() -> rud_har
# }
Run the code above in your browser using DataLab