driver: Firefox and Chrome Drivers

Description Usage Arguments Value See Also Examples

Description

Drivers for firefox and chrome to run the Shiny application

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
firefox_driver(
  test_path = tempdir(),
  verbose = FALSE,
  port = httpuv::randomPort(),
  opts = firefox_options(download_path = test_path),
  ...
)

chrome_driver(
  test_path = tempdir(),
  verbose = FALSE,
  port = httpuv::randomPort(),
  opts = chrome_options(download_path = test_path),
  ...
)

Arguments

test_path

path to run the tests, Default: tempdir()

verbose

If TRUE, include status messages (if any)

port

Port to run on

opts

Driver options from firefox_driver or chrome_driver

...

Additional arguments to pass to remoteDriver

Value

object of class remoteDriver

See Also

rsDriver

Other driver: chrome_options(), chrome_version(), set_chrome_driver(), set_firefox_driver(), set_timeout()

Other driver: chrome_options(), chrome_version(), set_chrome_driver(), set_firefox_driver(), set_timeout()

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
## Not run: 
if(interactive()){
 firefox_rs <- firefox_driver()
 firefox_rs$client$navigate('https://www.google.com')
 firefox_rs$client$screenshot(display = TRUE)
 firefox_rs$client$close()
 firefox_rs$server$stop()
 }

## End(Not run)

yonicd/reactor documentation built on Jan. 20, 2021, 4:40 a.m.