ropensci / RSelenium

An R client for Selenium Remote WebDriver

Home Page:https://docs.ropensci.org/RSelenium

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Selenium judge whether the element exists

Liripo opened this issue · comments

Hello:
How can I tell if an element exists or not will not stop my script directly?
Thanks!

I use try() and tryCatch() like this:

try(remDr$findElement(using="name", value = 'login_id'))