RSelenium not working anymore on macOS with error Undefined error in httr call

lasagna

I try to run a selenium server, connected to a firefox in MacOS. This had worked until I updated Java. I dont know what to do, and I cant use Docker cause I need to download some outputs from the website Im trying to scrape.

This is the verbose of the error:

rs_driver_object=rsDriver(browser="firefox", port=4410L, verbose=TRUE)
checking Selenium Server versions:
BEGIN: PREDOWNLOAD
BEGIN: DOWNLOAD
BEGIN: POSTDOWNLOAD
checking chromedriver versions:
BEGIN: PREDOWNLOAD
BEGIN: DOWNLOAD
BEGIN: POSTDOWNLOAD
checking geckodriver versions:
BEGIN: PREDOWNLOAD
BEGIN: DOWNLOAD
BEGIN: POSTDOWNLOAD
checking phantomjs versions:
BEGIN: PREDOWNLOAD
BEGIN: DOWNLOAD
BEGIN: POSTDOWNLOAD
[1] "Connecting to remote server"
Could not open firefox browser.
Client error message:
Undefined error in httr call. httr output: Failed to connect to localhost port 4410 after 0 ms: Connection refused
Check server log for further details.
Warning message:
In rsDriver(browser = "firefox", port = 4410L, verbose = TRUE) :
dcsuka

I have encountered this error myself before, and most likely this is caused by using the same port number during multiple attempts. Every time, the port number must be changed.

Also, if that fails, I highly recommend using the wdman package to manage your RSelenium server.

See my post here for an example usage of wdman:

How to get a table from power BI dashboard using web scraping in R

Collected from the Internet

Please contact [email protected] to delete if infringement.

edited at
0

Comments

0 comments
Login to comment

Related

Getting 'Undefined error in httr call' when using remDr$navigate with R Selenium - how to fix it?

cURL is not working anymore giving a 408 error

Call to undefined method error

RSelenium error driver issues?

Handle RSelenium error messages

RSelenium error: NotConnectedException

Uncaught Error: Call to undefined function

phpMyAdmin error call to undefined function

Call to undefined method create() error

Call to undefined method error in Laravel

Fatal error: Call to undefined function

PHP Error: Fatal error: Call to undefined method

CakePHP error: Call to undefined method FlashComponent::error()

SwiftUI MacOS gives Error: Undefined symbol: _main

SSL connect error in httr / curl

a error occur in remoteDriver function of RSelenium

Opening images in Win 7 not working anymore - " COM surrogate has stopped working " error

Error: Call to undefined function Tests\factory()

Uncaught Error: Call to undefined function bindValue() in

phpMyAdmin Fatal error: Call to undefined function __()

Call to undefined function iconv() fatal error - Suitecrm

Fatal Error - Call to undefined method "Customersss::throwError()"

Fatal error: Call to undefined method PDOStatement::lastInsertId()

ERROR TypeError: Cannot read property 'call' of undefined

Fatal error: Call to undefined method db::_results()

Deployer - Fatal error: Call to undefined function server()

Fatal error: Call to undefined function bindParam()

PHP Fatal error: Call to undefined function imagecreatefrompng()

Fatal error: Call to undefined function runQuery()