Coming soon - Get a detailed view of why an account is flagged as spam!
view details

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.

3
RSelenium - selecting dropdown option
Post Body

Dear r users,

I have been trying to extract data from the follwing website using the amazing RSelenium:

https://www.nhtsa.gov/ratings

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

Author
Account Strength
90%
Account Age
6 years
Verified Email
Yes
Verified Flair
No
Total Karma
1,493
Link Karma
621
Comment Karma
872
Profile updated: 1 day ago
Posts updated: 1 year ago

Subreddit

Post Details

We try to extract some basic information from the post title. This is not always successful or accurate, please use your best judgement and compare these values to the post title and body for confirmation.
Posted
5 years ago