wbElement Create a Web Element object of class "wElement"
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.
Returns
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
## Not run:remDr <- remoteDr()webElem <- remDR %>% go("http://www.google.com")%>% findElement("name","q")# print the webElementwebElem
# send keys to the web ElementwebElem %>% elementSendKeys("R project", key ="enter")# close browserremDr %>% deleteSession()## End(Not run)