Skip to contents

Adds a script which would be evaluated in one of the following scenarios:

Usage

add_init_script(page, ...)

Arguments

page

Page instance

References

  • https://erikaris.github.io/rplaywright/#add_init_script

Examples

if (FALSE) { # \dontrun{
 page <- rplaywright::new_chromium() %>%
  new_context() %>%
  new_page()

 page %>% add_init_script(list(path=normalizePath("./examples/preload.js")))
} # }