RSelenium icon indicating copy to clipboard operation
RSelenium copied to clipboard

Not able to close window after hanging

Open QMetrics opened this issue 1 year ago • 0 comments

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.

QMetrics avatar Feb 22 '24 14:02 QMetrics