RSelenium gets stuck using ClickElement()

Hi community,

I am trying to use RSelenium to get into a url to extract some information.

My problem is that once that I an inside of the url remotly and I try to use "clickelement()" the page stay stuck. Here my code.


driver <- rsDriver( browser = c('firefox'))
remote_driver <- driver[["client"]]
url <- "https://ec.europa.eu/transparencyregister/public/consultation/search.do;TRPUBLIC-ID-prod=0Te0AzD7Ro4S2IroweOcq-w6k5SMwdWiqekU_5PQQ1CzJdtTuxdg!-1989600635?firstTabActive=false"
remote_driver$navigate(url)


address_element <- remote_driver$findElement(using = 'id', value = 'regStartDate')
address_element$sendKeysToElement(list("23/06/2008"))


button_element <- remote_driver$findElement(using = 'css', value = '.navbar-btn')
button_element$clickElement()

I try using xpath but it get stuck aniway.

Thanks for your help!!

Hi

Thanks for the answer but it doesn't work. I try to find the css by link text but I have two names of "buscar" and is not working.

This topic was automatically closed 21 days after the last reply. New replies are no longer allowed.

If you have a query related to it or one of the replies, start a new topic and refer back with a link.