Questions tagged [rselenium]

The goal of RSelenium is to make it easy to connect to a Selenium Server/ Remote Selenium Server from within R. RSelenium provides R bindings for the Selenium Webdriver API. Selenium is a project focused on automating web browsers. RSelenium allows you to carry out unit testing and regression testing on your webapps and webpages across a range of browser/OS combinations.

The goal of RSelenium is to make it easy to connect to a Selenium Server/ Remote Selenium Server from within R. RSelenium provides R bindings for the Selenium Webdriver API.

Selenium is a project focused on automating web browsers. See http://docs.seleniumhq.org/

RSelenium allows you to carry out unit testing and regression testing on your webapps and webpages across a range of browser/OS combinations. This allows us to integrate from within R testing and manipulation of popular projects such as shiny, sauceLabs.

Selenium Server is a standalone java program which allows you to run HTML test suites in a range of different browsers, plus extra options like reporting.

See vignette for more details- http://cran.r-project.org/web/packages/RSelenium/vignettes/RSelenium-basics.html

944 questions
0
votes
0 answers

R - using rselenium, how to navigate through drop-down directory

I am trying to use rselenium to upload a CSV file to a website. My last two lines of code are below, which I use to click on an 'upload' button on the website, prompting the website to drop-down a window with my directories, similar to finder, that…
Canovice
  • 9,012
  • 22
  • 93
  • 211
0
votes
0 answers

Using Rselenium on mac sierra

It seems that every time I update my OS, R, or any browsers Rselenium stops working. I can no longer use it with any browser -Firefox, Chrome, or PhantomJS. I've posted my code below. Session Info: sessionInfo() R version 3.3.2…
Cyrus Mohammadian
  • 4,982
  • 6
  • 33
  • 62
0
votes
0 answers

Getting R Selenium to Run on internet explorer

I am trying to run RSelenium with internet explorer I have downloaded the jar file selenium-server-standalone-3.0.1 which according to the documentation has internet explorer already available to it My Code is below and it connects to the server…
John Smith
  • 2,448
  • 7
  • 54
  • 78
0
votes
1 answer

Using RSelenium to log in a website written with

My boss asked me to grab some data from the China in-depth accident study database. I know that I need to log in first so that I chose to use RSelenium and phantomjs to help me with my work. I am a beginner to HTML and javascript and basically have…
0
votes
0 answers

RSelenium - can't get started in R

I've been struggling for ages trying to resolve this and rather lost so would really appreciate your help. I am trying to scrape a Javascript page through RStudio on a Mac and not even getting started which is frustrating. I installed phantomjs…
0
votes
1 answer

How to clear history in Rselenium's internal web browser?

In web browsers it is possible to clear history. How is it possible to clear history in firefox browser in RSelenium using R commands?
Teres
  • 73
  • 1
  • 8
0
votes
1 answer

RSelenium script getting unhappy Chrome face

I have the code: startServer(args = c("-port 4456"), log = FALSE, invisible = FALSE) selServ <- startServer(args = c("-port 4456", "-Dwebdriver.chrome.driver=C:/Drivers/chromedriver"), log = TRUE) remDr <-…
done_merson
  • 2,800
  • 2
  • 22
  • 30
0
votes
1 answer

RSelenium: Can't extract piece of text from table

Have a look at this webpage. I want to extract the text element '2013'. I use RSelenium for this, but if anyone knows how to do it using any other package that is fine too. My current script is the following: startServer() remDr <-…
user3387899
  • 601
  • 5
  • 18
0
votes
1 answer

how to give the String input with Special characters in Xpath using R selenium

result <- z$findElement(using = 'xpath',"//*[contains(text(),'the deal” of hosting major sporting')]") In above command the reference String have special character the deal” so ,R gave the Error as Error: Summary: NoSuchElement …
user6742044
0
votes
1 answer

RSelenium clicking element returns NULL

I'd like to be able to automatically fill in the following test. After each phrase you can choose either Eens (I agree) or Oneens (I don't agree). I'm using RSelenium to do this. Loading my browser and the first phrase poses no problem at all.…
1053Inator
  • 302
  • 1
  • 15
0
votes
1 answer

Can a variable be used with / passed to an XPath expression in an Rselenium function?

The Rselenium code below comes from the answer/comment to the this SO post. Sample code is there. option <- remDr$findElement(using = 'xpath', "//select[@id='main_ddYear']/option[@value='2014']") option$clickElement() Note the literal '2014' near…
LWRMS
  • 547
  • 8
  • 18
0
votes
1 answer

Selenium no such element found

I try to take the href from an element using RSelenium. Here is an example of html structure:
    Elen
    • 39
    • 7
0
votes
1 answer

Waiting until the whole page load

Using the following we can expect/know that the whole page has loaded. Sys.sleep(5) or remDr$executeScript("return document.readyState == 'complete';") or remDr$setTimeout(type = "page load", milliseconds = 10000) However sometimes the load of…
Elen
  • 39
  • 7
0
votes
2 answers

RSelenium - Java enable

I try to startServer() in RSelenium but I receive this error: Error in startServer(): Selenium binary error: Unable to start Selenium binary. Check java is installed. I used cmd command java -version and I have java java version…
Elen
  • 39
  • 7
0
votes
0 answers

How to use R to scrape javascript html href link that uses dopostback

I'm trying to scrape this URL [of tennis league scores][1] [1]: http://tennislink.usta.com/leagues/Main/statsandstandings.aspx#&&s=2%7C%7C%7C%7C4.0%7C%7CM%7C%7C2016%7C%7C9%7C%7C310%7C%7C. My goal is to automate scraping the results of my teams for…
LWRMS
  • 547
  • 8
  • 18