This post has been de-listed
It is no longer included in search results and normal feeds (front page, hot posts, subreddit posts, etc). It remains visible only via the author's post history.
Dear r users,
I have been trying to extract data from the follwing website using the amazing RSelenium:
I wanted to extract the safety rating for each car. I figured the easiest way would be to use the manufacturer link and follow each manufacturer.
However no mather what css selector or Xpath I use Selenium always returns an error stating that "Summary: NoSuchElement".
Here is the portion of my code:
library(RSelenium)
opens a connection
rD <- rsDriver() remDr <- rD$client
goes to the page we want
url <- "https://www.nhtsa.gov/ratings" remDr$navigate(url)
clicking on the AUDI cars
webElem <- remDr$findElement(using = 'css selector', value = "option:nth-child(2)") webElem$clickElement()
Any help on what is going on?
Thank you in advance for your help
Subreddit
Post Details
- Posted
- 5 years ago
- Reddit URL
- View post on reddit.com
- External URL
- reddit.com/r/rprogrammin...