ropensci / RSelenium

An R client for Selenium Remote WebDriver
https://docs.ropensci.org/RSelenium
341 stars 81 forks source link

Not able to close window after hanging #288

Open QMetrics opened 7 months ago

QMetrics commented 7 months ago

All,

I have the following issue. Hopefully, someone can help me with this. After hanging on a website for some minutes, I get the following error message:

_Error in .Call(R_curl_fetch_memory, enc2utf8(url), handle, nonblocking) : reached elapsed time limit

After applying an error handler, I want to close the current window and start a new webdriver. Unfortunately, I can't find a way to close this window because the operation was aborted because of an application callback. I suspect that the connection is reset. I have attempted the following ways to close the window, but nothing helps: remDr$close() remDr$quit() remDr$closeWindow() remDr$closeall()

I get a message that no connection could be made to server

Since the website I am scraping hangs quite often. After a while, tens of windows are open, which slows down everything.

Every help is appreciated.