seleniumPipes (version 0.3.7)

newSession: Create a new session.

Description

newSession The server should attempt to create a session that most closely matches the desired and required capabilities. Required capabilities have higher priority than desired capabilities and must be set for the session to be created.

Usage

newSession(remDr, ...)

Arguments

remDr
An object of class "rDriver". A remote driver object see remoteDr.
...
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, setTimeout

Examples

Run this code
## 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)

Run the code above in your browser using DataCamp Workspace