
Last chance! 50% off unlimited learning
Sale ends in
elementClick
The elementClick function scrolls into view the element and clicks the in-view centre point. If the element is not pointer-interactable, an element not interactable error is returned.
elementClick(webElem, ...)
wbElement
.retry
argument.wbElement
. This allows for chaining from this function to
other functions that take such an object as an argument. See examples for further details.
elementClear
,
elementSendKeys
## Not run:
# # start a brower
# remDr <- remoteDr()
# remDr %>% go("http://www.google.com/ncr")
#
# queryBox <- remDr %>% findElement("name", "q")
#
# # send text to the query box
# queryBox %>% elementSendKeys("Some ", "text")
#
# # clear the query box
# queryBox %>% elementClear
#
# # get the search button
# searchBtn <- remDr %>% findElement("name", "btnG")
# # send text to query box
# queryBox %>% elementSendKeys("R project")
#
# # click the search button
# searchBtn %>% elementClick
#
# # close browser
# remDr %>% deleteSession
# ## End(Not run)
Run the code above in your browser using DataLab