Create a Web Element

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.

Description

wbElement Create a Web Element object of class "wElement"

Examples

## 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() ## ---------------------------------------------