wbElement: Create a Web Element

Description Usage Arguments Value Examples

View source: R/init.R

Description

wbElement Create a Web Element object of class "wElement"

Usage

1
wbElement(elementId, remDr)

Arguments

elementId

This is a string returned by the web driver that identifies the web element.

remDr

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

Value

An object of class "wElement" is returned. This is a web element object that is used in many of the web Element specific functions. Many functions that take a web Element object as input also return the web Element object. This allows chaining of commands. See the examples for chaining in action.

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
## Not run: 
remDr <- remoteDr()
webElem <- remDR %>% go("http://www.google.com") %>%
 findElement("name", "q")
# print the webElement
webElem

# send keys to the web Element
webElem %>%  elementSendKeys("R project", key = "enter")

# close browser
remDr %>% deleteSession()

## End(Not run)

seleniumPipes documentation built on May 29, 2017, 7:01 p.m.