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 = 4567L,
  opts = firefox_options(download_path = test_path),
  ...
)

chrome_driver(
  test_path = tempdir(),
  verbose = FALSE,
  port = 4567L,
  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

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 Oct. 12, 2020, 3:20 a.m.