Rselenium on rstudio Server

I want to use RSelenium for web scraping. Doing it localy it works fine as i can simply use a browser i have installed. However i can´t run RSelenium in my RStudio Cloud Project because there is no browser to use, is there some way to provide a browser so i can run it?

the code i currently use, obviously not much:

rD <- rsDriver(browser = "firefox")

The resulting error message:

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"

Selenium message:Expected browser binary location, but unable to find binary in default location, no 'moz:firefoxOptions.binary' capability provided, and no binary flag set on the command line
Build info: version: '4.0.0-alpha-2', revision: 'f148142cf8', time: '2019-07-01T21:30:10'
System info: host: 'application-2646286-deployment-6870747-xdjlv', ip: '192.168.192.184', os.name: 'Linux', os.arch: 'amd64', os.version: '5.3.0-1017-aws', java.version: '1.8.0_252'
Driver info: driver.version: unknown
remote stacktrace: 

Could not open firefox browser.
Client error message:
	 Summary: SessionNotCreatedException
 	 Detail: A new session could not be created.
	 Further Details: run errorDetails method
Check server log for further details.

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