Description Usage Arguments Value Examples
wbElement
Create a Web Element object of class "wElement"
1 | wbElement(elementId, remDr)
|
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 |
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.
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)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.