RSelenium cannot access DOM
问题 I am using Selenium on Stockpair Website s = remoteDriver(remoteServerAddr = "localhost", port = 4444, browserName = "chrome") s$open() url <- "https://www.stockpair.com/sp#trading/page" s$navigate(url) dir <- s$findElement("css selector", "div.stockSelectionButton.left") dir$clickElement() I get the error Error: Summary: StaleElementReference Detail: An element command failed because the referenced element is no longer attached to the DOM. class: org.openqa.selenium