RSelenium icon indicating copy to clipboard operation
RSelenium copied to clipboard

Can't load any web pages

Open krisyhong opened this issue 5 years ago • 0 comments

Hi, I'm new to RSelenium and Selenium in general. I've installed RSelenium-Docker, but I can't get any sites to load.

Here is the code I'm using:

rD <- remoteDriver(port=4567L, browserName='firefox')
rD$open()
rD$navigate("http://www.google.com/")
rD$screenshot(display=TRUE)

And here are the outputs:

$remoteServerAddr
[1] "localhost"

$port
[1] 4567

$browserName
[1] "firefox"

$version
[1] ""

$platform
[1] "ANY"

$javascript
[1] TRUE

$nativeEvents
[1] TRUE

$extraCapabilities
list()
> rD$open()
[1] "Connecting to remote server"
$acceptInsecureCerts
[1] FALSE

$browserName
[1] "firefox"

$browserVersion
[1] "70.0"

$`moz:accessibilityChecks`
[1] FALSE

$`moz:buildID`
[1] "20191016161957"

$`moz:geckodriverVersion`
[1] "0.26.0"

$`moz:headless`
[1] FALSE

$`moz:processID`
[1] 586

$`moz:profile`
[1] "/tmp/rust_mozprofile1O5gLK"

$`moz:shutdownTimeout`
[1] 60000

$`moz:useNonSpecCompliantPointerOrigin`
[1] FALSE

$`moz:webdriverClick`
[1] TRUE

$pageLoadStrategy
[1] "normal"

$platformName
[1] "linux"

$platformVersion
[1] "4.15.0-70-generic"

$rotatable
[1] FALSE

$setWindowRect
[1] TRUE

$strictFileInteractability
[1] FALSE

$timeouts
$timeouts$implicit
[1] 0

$timeouts$pageLoad
[1] 300000

$timeouts$script
[1] 30000


$unhandledPromptBehavior
[1] "dismiss and notify"

$webdriver.remote.sessionid
[1] "9c7037ea-5bc2-4502-9a1a-9dc6fae56fd8"

$id
[1] "9c7037ea-5bc2-4502-9a1a-9dc6fae56fd8"
> rD$navigate("http://www.google.com/")

Selenium message:Reached error page: about:neterror?e=dnsNotFound&u=http%3A//www.google.com/&c=UTF-8&f=regular&d=We%20can%E2%80%99t%20connect%20to%20the%20server%20at%20www.google.com.
Build info: version: '3.141.59', revision: 'e82be7d358', time: '2018-11-14T08:25:53'
System info: host: '853da07b17cb', ip: '172.17.0.2', os.name: 'Linux', os.arch: 'amd64', os.version: '4.15.0-70-generic', java.version: '1.8.0_222'
Driver info: driver.version: unknown

Error: 	 Summary: UnknownError
 	 Detail: An unknown server-side error occurred while processing the command.
 	 class: org.openqa.selenium.WebDriverException
	 Further Details: run errorDetails method

The screenshot shows "Hmmm. We're having trouble finding that site. We can't connect to the server at www.google.com"

Any help is greatly appreciated, thanks!

krisyhong avatar Dec 09 '19 00:12 krisyhong