geckodriver tryes to connect 600 time but cant Using ESR52.7.3(32-bit)
Open
rahmansa2010
opened this issue 8 years ago
•
11 comments
System
Version: 0.20.0
Platform:Windows 8.1
Firefox: ESR 52.7.3 (32-bit)
Selenium: 3.11.0
TestCase:
public class FFDriverTest {
public static void main(String[] args) {
System.setProperty("webdriver.gecko.driver","C:\\GeckoDriver\\geckodriver-v0.20.0-win32\\geckodriver.exe");
FirefoxOptions options = new FirefoxOptions();
options.setCapability("marionette", true);
options.setLogLevel(FirefoxDriverLogLevel.TRACE);
options.setBinary("C:\\Program Files (x86)\\Mozilla Firefox\\firefox.exe");
WebDriver driver = new FirefoxDriver(options);
driver.get("https://www.cnn.com/");
driver.quit();
}
}
Stacktrace
1526399619160 geckodriver INFO geckodriver 0.20.0 (0ac3698a74a7b1a742682b8e704f1f418df827ed 2018-03-13)
1526399619176 geckodriver INFO Listening on 127.0.0.1:47203
1526399619781 mozrunner::runner INFO Running command: "C:/Program Files (x86)/Mozilla Firefox/firefox.exe" "-marionette" "-profile" "C:\Users\srahman\AppData\Local\Temp\rust_mozprofile.4XxeJxO2RkOi"
1526399620556 addons.webextension. WARN Loading extension 'null': Reading manifest: Error processing background.persistent: Event pages are not currently supported. This will run as a persistent background page.
1526399621512 Marionette INFO Listening on port 2828
1526399621560 [email protected] WARN Loading extension '[email protected] ': Reading manifest: Error processing background.persistent: Event pages are not currently supported. This will run as a persistent background page.
1526399621827 geckodriver::marionette TRACE connection attempt 0/600
1526399623933 geckodriver::marionette TRACE connection attempt 1/600
1526399626041 geckodriver::marionette TRACE connection attempt 2/600
1526399628154 geckodriver::marionette TRACE connection attempt 3/600
1526399630256 geckodriver::marionette TRACE connection attempt 4/600
1526399632360 geckodriver::marionette TRACE connection attempt 5/600
1526399634462 geckodriver::marionette TRACE connection attempt 6/600
1526399636566 geckodriver::marionette TRACE connection attempt 7/600
1526399638678 geckodriver::marionette TRACE connection attempt 8/600
1526399640807 geckodriver::marionette TRACE connection attempt 9/600
1526399642937 geckodriver::marionette TRACE connection attempt 10/600
1526399645059 geckodriver::marionette TRACE connection attempt 11/600
......
.....
......
......
1526400897846 geckodriver::marionette TRACE connection attempt 600/600
1526400899972 geckodriver::marionette TRACE connection attempt 601/600
1526400899972 webdriver::server DEBUG <- 500 Internal Server Error {"value":{"error":"unknown error","message":"connection refused","stacktrace":""}}
Exception in thread "main" org.openqa.selenium.WebDriverException: connection refused
Build info: version: '3.11.0', revision: 'e59cfb3', time: '2018-03-11T20:26:55.152Z'
System info: host: 'GPD654', ip: '10.1.101.61', os.name: 'Windows 8.1', os.arch: 'amd64', os.version: '6.3', java.version: '1.8.0_152'
Driver info: driver.version: FirefoxDriver
remote stacktrace:
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
at java.lang.reflect.Constructor.newInstance(Constructor.java:423)
at org.openqa.selenium.remote.W3CHandshakeResponse.lambda$new$0(W3CHandshakeResponse.java:57)
at org.openqa.selenium.remote.W3CHandshakeResponse.lambda$getResponseFunction$2(W3CHandshakeResponse.java:104)
at org.openqa.selenium.remote.ProtocolHandshake.lambda$createSession$0(ProtocolHandshake.java:123)
at java.util.stream.ReferencePipeline$3$1.accept(ReferencePipeline.java:193)
at java.util.Spliterators$ArraySpliterator.tryAdvance(Spliterators.java:958)
at java.util.stream.ReferencePipeline.forEachWithCancel(ReferencePipeline.java:126)
at java.util.stream.AbstractPipeline.copyIntoWithCancel(AbstractPipeline.java:498)
at java.util.stream.AbstractPipeline.copyInto(AbstractPipeline.java:485)
at java.util.stream.AbstractPipeline.wrapAndCopyInto(AbstractPipeline.java:471)
at java.util.stream.FindOps$FindOp.evaluateSequential(FindOps.java:152)
at java.util.stream.AbstractPipeline.evaluate(AbstractPipeline.java:234)
at java.util.stream.ReferencePipeline.findFirst(ReferencePipeline.java:464)
at org.openqa.selenium.remote.ProtocolHandshake.createSession(ProtocolHandshake.java:126)
at org.openqa.selenium.remote.ProtocolHandshake.createSession(ProtocolHandshake.java:73)
at org.openqa.selenium.remote.HttpCommandExecutor.execute(HttpCommandExecutor.java:136)
at org.openqa.selenium.remote.service.DriverCommandExecutor.execute(DriverCommandExecutor.java:83)
at org.openqa.selenium.remote.RemoteWebDriver.execute(RemoteWebDriver.java:545)
at org.openqa.selenium.remote.RemoteWebDriver.startSession(RemoteWebDriver.java:209)
at org.openqa.selenium.remote.RemoteWebDriver.(RemoteWebDriver.java:132)
at org.openqa.selenium.firefox.FirefoxDriver.(FirefoxDriver.java:120)
at driver.FFDriverTest.main(FFDriverTest.java:19)
Unfortunately FIrefox 52 is not supported by geckodriver, but I would encourage you to try 55 or greater. Nightly will have the most amount of bug fixes.
Which ESR version is supported in Selenium 3?
No current ESR version is supported by geckodriver, though the forthcoming ESR 60 release will be.
You can grab the 60.0esr build here: https://www.mozilla.org/en-US/firefox/organizations/
Hi,
I got Selenium Grid running with this versions:
Gecko-Version: 0.15.0
Platform: Windows 7
Firefox: ESR 52.7.3 (32-bit)
Selenium: 3.3.1
Maybe this helps you.
@rahmansa2010 You can use Selenium v3.x against Firefox ESR v52.x as long as you use the Firefox Legacy webdriver - i.e. not GeckoDriver. To do this you need to change: options.setCapability("marionette", **false**);
You will also have to make sure your remote node registers in its capabilities that as well:
{"browserName":"firefox","browserVersion":"52.8.0","marionette": **false**,"maxInstances":"1","platformName":"MAC"}
@rahmansa2010 do you have IPv6 enabled? If yes geckodriver would use that protocol to connect to Marionette, which fails. Disabling IPv6 would help, or at least that localhost doesn't resolve to ::1.
Also an override in /etc/hosts to (temporarily) avoid localhost from hitting ::1 would work.
Will try that option ...but for so far thinking to upgrade version.
The version of Firefox doesn't matter in this case. So please let us know.
This issue has been automatically locked since there has not been any recent activity after it was closed. If you have run into an issue you think is related, please open a new issue.