setTimeout: Configure the amount of time that a particular type of...

Description Usage Arguments Value See Also Examples

Description

setTimeout Configure the amount of time that a particular type of operation can execute for before they are aborted and a |Timeout| error is returned to the client.

Usage

1
setTimeout(remDr, type = "page load", milliseconds = 10000, ...)

Arguments

remDr

An object of class "rDriver". A remote driver object see remoteDr.

type

The type of operation to set the timeout for. Valid values are: "script" for script timeouts, "implicit" for modifying the implicit wait timeout and "page load" for setting a page load timeout.

milliseconds

The amount of time, in milliseconds, that time-limited commands are permitted to run.

...

Additonal function arguments - Currently passes the retry argument.

Value

invisible(remDr): An object of class "rDriver" is invisibly returned. A remote driver object see remoteDr. This allows for chaining from this function to other functions that take such an object as an argument. See examples for further details.

See Also

Other sessions functions: deleteSession, newSession

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
## Not run: 
  # start a driver without opening a browser
  remDr <- remoteDr(newSession = FALSE)

  # open a broswer
  remDr %>% newSession

  # set timeout on waiting for elements
  remDr %>% setTimeout(type = "implicit", 5000)

  # close Session
  remDr %>% deleteSession


## End(Not run)

seleniumPipes documentation built on May 2, 2019, 5:57 a.m.