seleniumPipes (version 0.3.7)

wbElement: Create a Web Element

Description

wbElement Create a Web Element object of class "wElement"

Usage

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

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

Run the code above in your browser using DataLab