Adds a script which would be evaluated in one of the following scenarios:
Source:R/r6_rplaywright.R
add_init_script.Rd
Adds a script which would be evaluated in one of the following scenarios:
Examples
if (FALSE) { # \dontrun{
page <- rplaywright::new_chromium() %>%
new_context() %>%
new_page()
page %>% add_init_script(list(path=normalizePath("./examples/preload.js")))
} # }