RSelenium icon indicating copy to clipboard operation
RSelenium copied to clipboard

Undefined error in httr call using javascript clic() on selectedElement

Open reyman opened this issue 6 years ago • 1 comments

Operating System

Ubuntu latest 18.04, latest version of RSelenium using devtools

Selenium Server version (selenium-server-standalone-3.0.1.jar etc.)

Docker version selenium/standalone-firefox:2.53.0

Browser version (firefox 50.1.0, chrome 54.0.2840.100 (64-bit) etc.)

Linked to docker standalone-firefox

Expected behaviour

Move cursor to a button, then click with javascript (because movecursor create an overlay situation) to load more data.

Actual behaviour

The error returned is

Error in checkError(res) : 
  Undefined error in httr call. httr output: No method for S4 class:webElement

Steps to reproduce the behaviour


library("RSelenium")
remDr <- remoteDriver(remoteServerAddr = "localhost", port = 4445L)
remDr$open()
remDr$maxWindowSize()
remDr$navigate("https://www.flightradar24.com/data/airports/bod/arrivals")
loadmorebutton <- remDr$findElement(using = 'xpath', "//button[@class='btn btn-table-action btn-flights-load']")

remDr$executeScript("arguments[0].click();", loadmorebutton);

reyman avatar Sep 14 '18 21:09 reyman

I am also experiencing this issue.

lineage.tab <- remDr$findElement('xpath', "//*[@id=\"main\"]/div/section/div[2]/div[3]/section[5]/div[1]/div/div/div/ul/li[2]")

remDr$executeScript("arguments[0].click();", lineage.tab)
Error in checkError(res) : 
  Undefined error in httr call. httr output: No method for S4 class:webElement

alexbaur avatar Nov 28 '18 00:11 alexbaur