ropensci / RSelenium

An R client for Selenium Remote WebDriver
https://docs.ropensci.org/RSelenium
342 stars 81 forks source link

Rselenium unable to send keys to element #55

Open mohit77bansal opened 8 years ago

mohit77bansal commented 8 years ago

library(RSelenium) remDr <- remoteDriver(browserName = "firefox") remDr$open() url <-"https://erp.iitkgp.ernet.in/" remDr$navigate(url)

htmlParse(remDr$getPageSource()[[1]]) webElems <- remDr$findElements("id","user_id") webElems[[1]]$sendKeysToElement("abc")

whenever i execute last line, it shows these error: Error: Summary: UnknownError Detail: An unknown server-side error occurred while processing the command. class: java.lang.ClassCastException

So, how can i send value to any element

englianhu commented 8 years ago

I faced same issue. https://englianhu.wordpress.com/#jp-carousel-74

There is another issue which is RSelenium::startServer() when I tried to run on Linux.

- Error: Unable to access jarfile selenium-server-standalone.2.47.1jar
- /usr/bin/xvfb-run: line 171: kill: (32634) - No such process