0

I am trying to scrape results from this link: link. However, at the beginning of my work, I get an error. There is a dropdown menu where I can select provinces. I can't select the dropdown menu at all. I am also sharing my R code with you below.

library(RSelenium)
library(tidyverse)

rsDr <- rsDriver(browser = c("firefox"), port = sample(7600)[1], chromever = NULL)

remDr <- rsDr[['client']]

remDr$open()

remDr$maxWindowSize()

remDr$navigate("https://www.siviltoplum.gov.tr/illere-ve-faaliyet-alanlarina-gore-dernekler")

remDr$findElement(using = "xpath", '/html/body/div[7]')$clickElement()

I marked the place where I got the error in red enter image description here

I can't select the dropdown menu despite trying many elements that exist in html code. I need support for this.

NIKUNJ PATEL
  • 2,034
  • 1
  • 7
  • 22
  • 1
    There's an iframe you first need to switch to, https://stackoverflow.com/questions/41290620/click-on-cross-domain-iframe-element-using-rselenium – margusl Mar 01 '23 at 19:42

0 Answers0