Cannot set proxy to geckodriver 0.16
Firefox Version
53.0
Selenium version
selenium-java 3.4.0
Platform
OSX
Steps to reproduce -
Create a FirefoxDriver instance with Proxy:
Proxy proxy = new Proxy();
proxy.setHttpProxy("127.0.0.1:51969");
capabilities.setCapability(PROXY, proxy);
capabilities.setCapability("marionette", true);
FirefoxDriver driver = new FirefoxDriver(capabilities);
it throws the following exception:
org.openqa.selenium.SessionNotCreatedException: InvalidArgumentError: Expected [object Undefined] undefined to be an integer
P.S. Adding proxy in this way doesn't throw an exception:
options.addPreference("network.proxy.http", "127.0.0.1");
options.addPreference("network.proxy.http_port", "51969");
Can you supply the Selenium client version? Language binding? Trace-level log from geckodriver?
@andreastt Sure. selenium-java 3.4.0
Below is the full log:
1492813280905 geckodriver INFO Listening on 127.0.0.1:19300
1492813281444 geckodriver::marionette INFO Starting browser /Applications/Firefox.app/Contents/MacOS/firefox-bin with args ["-marionette"]
1492813281847 addons.manager DEBUG Application has been upgraded
1492813281896 addons.manager DEBUG Loaded provider scope for resource://gre/modules/addons/XPIProvider.jsm: ["XPIProvider"]
1492813281901 addons.manager DEBUG Loaded provider scope for resource://gre/modules/LightweightThemeManager.jsm: ["LightweightThemeManager"]
1492813281906 addons.manager DEBUG Loaded provider scope for resource://gre/modules/addons/GMPProvider.jsm
1492813281908 addons.manager DEBUG Loaded provider scope for resource://gre/modules/addons/PluginProvider.jsm
1492813281909 addons.manager DEBUG Starting provider: XPIProvider
1492813281910 addons.xpi DEBUG startup
1492813281910 addons.xpi INFO Removing all system add-on upgrades.
1492813281910 addons.xpi INFO SystemAddonInstallLocation directory is missing
1492813281911 addons.xpi INFO Mapping [email protected] to /Applications/Firefox.app/Contents/Resources/browser/features/[email protected]
1492813281912 addons.xpi INFO Mapping [email protected] to /Applications/Firefox.app/Contents/Resources/browser/features/[email protected]
1492813281912 addons.xpi INFO Mapping [email protected] to /Applications/Firefox.app/Contents/Resources/browser/features/[email protected]
1492813281912 addons.xpi INFO Mapping [email protected] to /Applications/Firefox.app/Contents/Resources/browser/features/[email protected]
1492813281912 addons.xpi INFO Mapping {972ce4c6-7e08-4474-a285-3208198ce6fd} to /Applications/Firefox.app/Contents/Resources/browser/extensions/{972ce4c6-7e08-4474-a285-3208198ce6fd}.xpi
1492813281913 addons.xpi DEBUG checkForChanges
1492813281913 addons.xpi INFO SystemAddonInstallLocation directory is missing
1492813281914 addons.xpi DEBUG Loaded add-on state from prefs: {}
1492813281914 addons.xpi DEBUG New add-on [email protected] in app-system-defaults
1492813281915 addons.xpi DEBUG getModTime: Recursive scan of [email protected]
1492813281915 addons.xpi DEBUG New add-on [email protected] in app-system-defaults
1492813281916 addons.xpi DEBUG getModTime: Recursive scan of [email protected]
1492813281916 addons.xpi DEBUG New add-on [email protected] in app-system-defaults
1492813281917 addons.xpi DEBUG getModTime: Recursive scan of [email protected]
1492813281917 addons.xpi DEBUG New add-on [email protected] in app-system-defaults
1492813281917 addons.xpi DEBUG getModTime: Recursive scan of [email protected]
1492813281918 addons.xpi DEBUG New add-on {972ce4c6-7e08-4474-a285-3208198ce6fd} in app-global
1492813281918 addons.xpi DEBUG getModTime: Recursive scan of {972ce4c6-7e08-4474-a285-3208198ce6fd}
1492813281918 addons.xpi DEBUG getInstallState changed: true, state: {"app-system-defaults":{"[email protected]":{"d":"/Applications/Firefox.app/Contents/Resources/browser/features/[email protected]","st":1492800115000},"[email protected]":{"d":"/Applications/Firefox.app/Contents/Resources/browser/features/[email protected]","st":1492800115000},"[email protected]":{"d":"/Applications/Firefox.app/Contents/Resources/browser/features/[email protected]","st":1492800115000},"[email protected]":{"d":"/Applications/Firefox.app/Contents/Resources/browser/features/[email protected]","st":1492800115000}},"app-global":{"{972ce4c6-7e08-4474-a285-3208198ce6fd}":{"d":"/Applications/Firefox.app/Contents/Resources/browser/extensions/{972ce4c6-7e08-4474-a285-3208198ce6fd}.xpi","st":1492800115000}}}
1492813281926 addons.xpi-utils DEBUG Opening XPI database /var/folders/69/t1jj16953kb0hrlfd9fmltnr0000gn/T/rust_mozprofile.kd7rEPUIiVNE/extensions.json
1492813281926 addons.xpi-utils DEBUG New add-on [email protected] installed in app-system-defaults
*** Blocklist::_loadBlocklistFromFile: blocklist is disabled
1492813281935 DeferredSave.extensions.json DEBUG Save changes
1492813281936 addons.xpi-utils DEBUG New add-on [email protected] installed in app-system-defaults
1492813281940 DeferredSave.extensions.json DEBUG Starting timer
1492813281942 DeferredSave.extensions.json DEBUG Save changes
1492813281942 addons.xpi-utils DEBUG New add-on [email protected] installed in app-system-defaults
1492813281949 DeferredSave.extensions.json DEBUG Save changes
1492813281949 addons.xpi-utils DEBUG New add-on [email protected] installed in app-system-defaults
1492813281955 DeferredSave.extensions.json DEBUG Save changes
1492813281956 addons.xpi-utils DEBUG New add-on {972ce4c6-7e08-4474-a285-3208198ce6fd} installed in app-global
1492813281959 DeferredSave.extensions.json DEBUG Save changes
1492813281960 addons.manager DEBUG Registering startup change 'installed' for [email protected]
1492813281971 addons.xpi DEBUG Loading bootstrap scope from /Applications/Firefox.app/Contents/Resources/browser/features/[email protected]
1492813281977 addons.xpi DEBUG Calling bootstrap method install on [email protected] version 2.0
1492813281977 addons.xpi-utils DEBUG Make addon app-system-defaults:[email protected] visible
1492813281978 DeferredSave.extensions.json DEBUG Save changes
1492813281978 addons.manager DEBUG Registering startup change 'installed' for [email protected]
1492813281979 addons.xpi DEBUG Loading bootstrap scope from /Applications/Firefox.app/Contents/Resources/browser/features/[email protected]
1492813281981 addons.xpi DEBUG Calling bootstrap method install on [email protected] version 1.14
1492813281982 addons.xpi-utils DEBUG Make addon app-system-defaults:[email protected] visible
1492813281983 DeferredSave.extensions.json DEBUG Save changes
1492813281983 addons.manager DEBUG Registering startup change 'installed' for [email protected]
1492813281984 addons.xpi DEBUG Loading bootstrap scope from /Applications/Firefox.app/Contents/Resources/browser/features/[email protected]
1492813281987 addons.xpi DEBUG Calling bootstrap method install on [email protected] version 1.0.5
1492813281987 addons.xpi-utils DEBUG Make addon app-system-defaults:[email protected] visible
1492813281987 DeferredSave.extensions.json DEBUG Save changes
1492813281987 addons.manager DEBUG Registering startup change 'installed' for [email protected]
1492813281988 addons.xpi DEBUG Loading bootstrap scope from /Applications/Firefox.app/Contents/Resources/browser/features/[email protected]
1492813281991 addons.xpi DEBUG Calling bootstrap method install on [email protected] version 1.0
1492813281992 addons.xpi-utils DEBUG Make addon app-system-defaults:[email protected] visible
1492813281992 DeferredSave.extensions.json DEBUG Save changes
1492813281992 addons.xpi-utils DEBUG Make addon app-global:{972ce4c6-7e08-4474-a285-3208198ce6fd} visible
1492813281993 DeferredSave.extensions.json DEBUG Save changes
1492813281993 addons.xpi DEBUG Updating XPIState for {"id":"[email protected]","syncGUID":"{07e8174c-9c9e-5e4a-9483-1eaa752b369f}","location":"app-system-defaults","version":"2.0","type":"extension","internalName":null,"updateURL":null,"updateKey":null,"optionsURL":null,"optionsType":null,"aboutURL":null,"icons":{},"iconURL":null,"icon64URL":null,"defaultLocale":{"name":"Application Update Service Helper","description":"Sets value(s) in the update url based on custom checks.","creator":null,"homepageURL":null},"visible":true,"active":true,"userDisabled":false,"appDisabled":false,"descriptor":"/Applications/Firefox.app/Contents/Resources/browser/features/[email protected]","installDate":1492800115000,"updateDate":1492800115000,"applyBackgroundUpdates":1,"bootstrap":true,"skinnable":false,"size":8486,"sourceURI":null,"releaseNotesURI":null,"softDisabled":false,"foreignInstall":false,"hasBinaryComponents":false,"strictCompatibility":false,"locales":[],"targetApplications":[{"id":"{ec8030f7-c20a-464f-9b0e-13a3a9e97384}","minVersion":"53.0","maxVersion":"53.*"}],"targetPlatforms":[],"multiprocessCompatible":true,"seen":true,"dependencies":[],"hasEmbeddedWebExtension":false,"mpcOptedOut":false,"userPermissions":null}
1492813281993 addons.xpi DEBUG getModTime: Recursive scan of [email protected]
1492813281993 addons.xpi DEBUG Updating XPIState for {"id":"[email protected]","syncGUID":"{ac3ddcaf-73c2-8644-9269-0cc01f3ca2a8}","location":"app-system-defaults","version":"1.14","type":"extension","internalName":null,"updateURL":null,"updateKey":null,"optionsURL":null,"optionsType":null,"aboutURL":null,"icons":{},"iconURL":null,"icon64URL":null,"defaultLocale":{"name":"Multi-process staged rollout","description":"Staged rollout of Firefox multi-process feature.","creator":null,"homepageURL":null},"visible":true,"active":true,"userDisabled":false,"appDisabled":false,"descriptor":"/Applications/Firefox.app/Contents/Resources/browser/features/[email protected]","installDate":1492800115000,"updateDate":1492800115000,"applyBackgroundUpdates":1,"bootstrap":true,"skinnable":false,"size":8476,"sourceURI":null,"releaseNotesURI":null,"softDisabled":false,"foreignInstall":false,"hasBinaryComponents":false,"strictCompatibility":false,"locales":[],"targetApplications":[{"id":"{ec8030f7-c20a-464f-9b0e-13a3a9e97384}","minVersion":"53.0","maxVersion":"53.*"}],"targetPlatforms":[],"multiprocessCompatible":true,"seen":true,"dependencies":[],"hasEmbeddedWebExtension":false,"mpcOptedOut":false,"userPermissions":null}
1492813281993 addons.xpi DEBUG getModTime: Recursive scan of [email protected]
1492813281994 addons.xpi DEBUG Updating XPIState for {"id":"[email protected]","syncGUID":"{b4913a3a-5b17-464b-aba3-dc13e2f85423}","location":"app-system-defaults","version":"1.0.5","type":"extension","internalName":null,"updateURL":null,"updateKey":null,"optionsURL":null,"optionsType":null,"aboutURL":null,"icons":{},"iconURL":null,"icon64URL":null,"defaultLocale":{"name":"Pocket","description":"When you find something you want to view later, put it in Pocket.","creator":null,"homepageURL":null},"visible":true,"active":true,"userDisabled":false,"appDisabled":false,"descriptor":"/Applications/Firefox.app/Contents/Resources/browser/features/[email protected]","installDate":1492800115000,"updateDate":1492800115000,"applyBackgroundUpdates":1,"bootstrap":true,"skinnable":false,"size":913563,"sourceURI":null,"releaseNotesURI":null,"softDisabled":false,"foreignInstall":false,"hasBinaryComponents":false,"strictCompatibility":false,"locales":[],"targetApplications":[{"id":"{ec8030f7-c20a-464f-9b0e-13a3a9e97384}","minVersion":"53.0","maxVersion":"53.*"}],"targetPlatforms":[],"multiprocessCompatible":true,"seen":true,"dependencies":[],"hasEmbeddedWebExtension":false,"mpcOptedOut":false,"userPermissions":null}
1492813281994 addons.xpi DEBUG getModTime: Recursive scan of [email protected]
1492813281994 addons.xpi DEBUG Updating XPIState for {"id":"[email protected]","syncGUID":"{d6b9dc06-49a4-2d4f-851e-72ad31471396}","location":"app-system-defaults","version":"1.0","type":"extension","internalName":null,"updateURL":null,"updateKey":null,"optionsURL":null,"optionsType":null,"aboutURL":null,"icons":{},"iconURL":null,"icon64URL":null,"defaultLocale":{"name":"Web Compat","description":"Urgent post-release fixes for web compatibility.","creator":null,"homepageURL":null},"visible":true,"active":true,"userDisabled":false,"appDisabled":false,"descriptor":"/Applications/Firefox.app/Contents/Resources/browser/features/[email protected]","installDate":1492800115000,"updateDate":1492800115000,"applyBackgroundUpdates":1,"bootstrap":true,"skinnable":false,"size":1454,"sourceURI":null,"releaseNotesURI":null,"softDisabled":false,"foreignInstall":false,"hasBinaryComponents":false,"strictCompatibility":false,"locales":[],"targetApplications":[{"id":"{ec8030f7-c20a-464f-9b0e-13a3a9e97384}","minVersion":"53.0","maxVersion":"53.*"}],"targetPlatforms":[],"multiprocessCompatible":true,"seen":true,"dependencies":[],"hasEmbeddedWebExtension":false,"mpcOptedOut":false,"userPermissions":null}
1492813281994 addons.xpi DEBUG getModTime: Recursive scan of [email protected]
1492813281994 addons.xpi DEBUG Updating XPIState for {"id":"{972ce4c6-7e08-4474-a285-3208198ce6fd}","syncGUID":"{376424bc-ae0d-ea4d-a6ae-1c4906991292}","location":"app-global","version":"53.0","type":"theme","internalName":"classic/1.0","updateURL":null,"updateKey":null,"optionsURL":null,"optionsType":null,"aboutURL":null,"icons":{},"iconURL":"chrome://browser/content/default-theme-icon.svg","icon64URL":null,"defaultLocale":{"name":"Default","description":"The default theme.","creator":"Mozilla","homepageURL":null,"contributors":["Mozilla Contributors"]},"visible":true,"active":true,"userDisabled":false,"appDisabled":false,"descriptor":"/Applications/Firefox.app/Contents/Resources/browser/extensions/{972ce4c6-7e08-4474-a285-3208198ce6fd}.xpi","installDate":1492800115000,"updateDate":1492800115000,"applyBackgroundUpdates":1,"skinnable":true,"size":4332,"sourceURI":null,"releaseNotesURI":null,"softDisabled":false,"foreignInstall":false,"hasBinaryComponents":false,"strictCompatibility":true,"locales":[],"targetApplications":[{"id":"{ec8030f7-c20a-464f-9b0e-13a3a9e97384}","minVersion":"53.0","maxVersion":"53.0"}],"targetPlatforms":[],"seen":true,"dependencies":[],"hasEmbeddedWebExtension":false,"userPermissions":null}
1492813281995 addons.xpi DEBUG getModTime: Recursive scan of {972ce4c6-7e08-4474-a285-3208198ce6fd}
1492813281996 DeferredSave.extensions.json DEBUG Save changes
1492813281996 addons.xpi DEBUG Updating database with changes to installed add-ons
1492813281996 addons.xpi-utils DEBUG Updating add-on states
1492813281997 addons.xpi-utils DEBUG Writing add-ons list
1492813282000 addons.xpi DEBUG Registering manifest for /Applications/Firefox.app/Contents/Resources/browser/features/[email protected]
1492813282000 addons.xpi DEBUG Calling bootstrap method startup on [email protected] version 2.0
1492813282001 addons.xpi DEBUG Registering manifest for /Applications/Firefox.app/Contents/Resources/browser/features/[email protected]
1492813282002 addons.xpi DEBUG Calling bootstrap method startup on [email protected] version 1.14
1492813282003 addons.xpi DEBUG Registering manifest for /Applications/Firefox.app/Contents/Resources/browser/features/[email protected]
1492813282003 addons.xpi DEBUG Calling bootstrap method startup on [email protected] version 1.0.5
1492813282004 addons.xpi DEBUG Registering manifest for /Applications/Firefox.app/Contents/Resources/browser/features/[email protected]
1492813282004 addons.xpi DEBUG Calling bootstrap method startup on [email protected] version 1.0
1492813282007 addons.manager DEBUG Registering shutdown blocker for XPIProvider
1492813282008 addons.manager DEBUG Provider finished startup: XPIProvider
1492813282008 addons.manager DEBUG Starting provider: LightweightThemeManager
1492813282008 addons.manager DEBUG Registering shutdown blocker for LightweightThemeManager
1492813282008 addons.manager DEBUG Provider finished startup: LightweightThemeManager
1492813282008 addons.manager DEBUG Starting provider: GMPProvider
1492813282012 addons.manager DEBUG Registering shutdown blocker for GMPProvider
1492813282012 addons.manager DEBUG Provider finished startup: GMPProvider
1492813282012 addons.manager DEBUG Starting provider: PluginProvider
1492813282012 addons.manager DEBUG Registering shutdown blocker for PluginProvider
1492813282012 addons.manager DEBUG Provider finished startup: PluginProvider
1492813282013 addons.manager DEBUG Completed startup sequence
1492813282466 addons.manager DEBUG Starting provider: <unnamed-provider>
1492813282466 addons.manager DEBUG Registering shutdown blocker for <unnamed-provider>
1492813282467 addons.manager DEBUG Provider finished startup: <unnamed-provider>
1492813282512 addons.manager DEBUG Starting provider: PreviousExperimentProvider
1492813282512 addons.manager DEBUG Registering shutdown blocker for PreviousExperimentProvider
1492813282513 addons.manager DEBUG Provider finished startup: PreviousExperimentProvider
1492813282518 DeferredSave.extensions.json DEBUG Starting write
1492813282665 DeferredSave.extensions.json DEBUG Write succeeded
1492813282665 addons.xpi-utils DEBUG XPI Database saved, setting schema version preference to 19
1492813284069 Marionette INFO Listening on port 54842
org.openqa.selenium.SessionNotCreatedException: InvalidArgumentError: Expected [object Undefined] undefined to be an integer
Build info: version: '3.4.0', revision: 'unknown', time: 'unknown'
System info: host: 'Andreis-MacBook-Pro-3.local', ip: 'fe80:0:0:0:1416:6c3e:d800:5630%en0', os.name: 'Mac OS X', os.arch: 'x86_64', os.version: '10.12.4', java.version: '1.8.0_111'
Driver info: driver.version: FirefoxDriver
remote stacktrace: stack backtrace:
0: 0x10c91437e - backtrace::backtrace::trace::h76b688ec9dd0c4e2
1: 0x10c914abc - backtrace::capture::Backtrace::new::hb5a725a088a2a2fc
2: 0x10c8c7eaf - webdriver::error::WebDriverError::new::h6e7bc24f03499973
3: 0x10c8d87cb - geckodriver::marionette::MarionetteSession::response::h06a886e7e8d17c71
4: 0x10c8d6663 - _$LT$geckodriver..marionette..MarionetteHandler$u20$as$u20$webdriver..server..WebDriverHandler$LT$geckodriver..marionette..GeckoExtensionRoute$GT$$GT$::handle_command::h1551b734f4cde0a0
5: 0x10c8c8340 - webdriver::server::start::_$u7b$$u7b$closure$u7d$$u7d$::h89f46c6cb17a6c48
6: 0x10c89bdcd - std::panicking::try::do_call::h20be620158d9b55a
7: 0x10ca3e5ba - __rust_maybe_catch_panic
8: 0x10c8aaaea - _$LT$F$u20$as$u20$alloc..boxed..FnBox$LT$A$GT$$GT$::call_box::h4fac0ee9906c8727
9: 0x10ca3ca14 - std::sys::imp::thread::Thread::new::thread_start::hca57ad22492f366f
10: 0x7fff8bb8d9ae - _pthread_body
11: 0x7fff8bb8d8fa - _pthread_start
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$22(ProtocolHandshake.java:365)
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:368)
at org.openqa.selenium.remote.ProtocolHandshake.createSession(ProtocolHandshake.java:159)
at org.openqa.selenium.remote.HttpCommandExecutor.execute(HttpCommandExecutor.java:142)
at org.openqa.selenium.remote.service.DriverCommandExecutor.execute(DriverCommandExecutor.java:82)
at org.openqa.selenium.remote.RemoteWebDriver.execute(RemoteWebDriver.java:637)
at org.openqa.selenium.remote.RemoteWebDriver.startSession(RemoteWebDriver.java:250)
at org.openqa.selenium.remote.RemoteWebDriver.startSession(RemoteWebDriver.java:236)
at org.openqa.selenium.remote.RemoteWebDriver.<init>(RemoteWebDriver.java:137)
at org.openqa.selenium.firefox.FirefoxDriver.<init>(FirefoxDriver.java:191)
at org.openqa.selenium.firefox.FirefoxDriver.<init>(FirefoxDriver.java:108)
at integration.GeckoTest.gecko(GeckoTest.java:44)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:50)
at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12)
at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:47)
at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:17)
at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:325)
at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:78)
at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:57)
at org.junit.runners.ParentRunner$3.run(ParentRunner.java:290)
at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:71)
at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:288)
at org.junit.runners.ParentRunner.access$000(ParentRunner.java:58)
at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:268)
at org.junit.runners.ParentRunner.run(ParentRunner.java:363)
at org.junit.runner.JUnitCore.run(JUnitCore.java:137)
at com.intellij.junit4.JUnit4IdeaTestRunner.startRunnerWithArgs(JUnit4IdeaTestRunner.java:68)
at com.intellij.rt.execution.junit.IdeaTestRunner$Repeater.startRunnerWithArgs(IdeaTestRunner.java:51)
at com.intellij.rt.execution.junit.JUnitStarter.prepareStreamsAndStart(JUnitStarter.java:237)
at com.intellij.rt.execution.junit.JUnitStarter.main(JUnitStarter.java:70)
@asolntsev Hm, unfortunately that’s only the debug-level logs. Try passing -vv to geckodriver or set {"moz:firefoxOptions": {"log": {"level": "trace"}}} as part of your capabilities.
@andreastt I am getting the same output after adding {"log": {"level": "trace"}}.
Can't you run the same code and reproduce the issue on your machine?
@asolntsev No, I’m not able to reproduce this. Is this still an issue on Firefox Nightly? I can’t really tell what’s wrong unless you attach a geckodriver trace log.
Apparently, if you’re using Java, you can use the FirefoxOptions.setLogLevel(LogLevel.ALL) option to crank it up, I learned today.
same error here, we get this while working with embedded selenium server process and trying to get the driver object
Our setup: macOS 10.12.4 firefox: 53 Geckodriver 0.16.1 Selenium 3.4
Trace:
1494159075921 geckodriver INFO Listening on 127.0.0.1:13528
1494159076176 geckodriver::marionette INFO Starting browser /Applications/Firefox.app/Contents/MacOS/firefox-bin with args ["-marionette"]
1494159076776 addons.manager DEBUG Application has been upgraded
1494159076832 addons.manager DEBUG Loaded provider scope for resource://gre/modules/addons/XPIProvider.jsm: ["XPIProvider"]
1494159076837 addons.manager DEBUG Loaded provider scope for resource://gre/modules/LightweightThemeManager.jsm: ["LightweightThemeManager"]
1494159076842 addons.manager DEBUG Loaded provider scope for resource://gre/modules/addons/GMPProvider.jsm
1494159076845 addons.manager DEBUG Loaded provider scope for resource://gre/modules/addons/PluginProvider.jsm
1494159076846 addons.manager DEBUG Starting provider: XPIProvider
1494159076846 addons.xpi DEBUG startup
1494159076847 addons.xpi INFO Removing all system add-on upgrades.
1494159076847 addons.xpi INFO SystemAddonInstallLocation directory is missing
1494159076849 addons.xpi INFO Mapping [email protected] to /Applications/Firefox.app/Contents/Resources/browser/features/[email protected]
1494159076850 addons.xpi INFO Mapping [email protected] to /Applications/Firefox.app/Contents/Resources/browser/features/[email protected]
1494159076850 addons.xpi INFO Mapping [email protected] to /Applications/Firefox.app/Contents/Resources/browser/features/[email protected]
1494159076851 addons.xpi INFO Mapping [email protected] to /Applications/Firefox.app/Contents/Resources/browser/features/[email protected]
1494159076851 addons.xpi INFO Mapping [email protected] to /Applications/Firefox.app/Contents/Resources/browser/features/[email protected]
1494159076852 addons.xpi INFO Mapping {972ce4c6-7e08-4474-a285-3208198ce6fd} to /Applications/Firefox.app/Contents/Resources/browser/extensions/{972ce4c6-7e08-4474-a285-3208198ce6fd}.xpi
1494159076853 addons.xpi DEBUG checkForChanges
1494159076853 addons.xpi INFO SystemAddonInstallLocation directory is missing
1494159076854 addons.xpi DEBUG Loaded add-on state from prefs: {}
1494159076855 addons.xpi DEBUG New add-on [email protected] in app-system-defaults
1494159076856 addons.xpi DEBUG getModTime: Recursive scan of [email protected]
1494159076856 addons.xpi DEBUG New add-on [email protected] in app-system-defaults
1494159076857 addons.xpi DEBUG getModTime: Recursive scan of [email protected]
1494159076857 addons.xpi DEBUG New add-on [email protected] in app-system-defaults
1494159076858 addons.xpi DEBUG getModTime: Recursive scan of [email protected]
1494159076859 addons.xpi DEBUG New add-on [email protected] in app-system-defaults
1494159076859 addons.xpi DEBUG getModTime: Recursive scan of [email protected]
1494159076859 addons.xpi DEBUG New add-on [email protected] in app-system-defaults
1494159076860 addons.xpi DEBUG getModTime: Recursive scan of [email protected]
1494159076860 addons.xpi DEBUG New add-on {972ce4c6-7e08-4474-a285-3208198ce6fd} in app-global
1494159076860 addons.xpi DEBUG getModTime: Recursive scan of {972ce4c6-7e08-4474-a285-3208198ce6fd}
1494159076861 addons.xpi DEBUG getInstallState changed: true, state: {"app-system-defaults":{"[email protected]":{"d":"/Applications/Firefox.app/Contents/Resources/browser/features/[email protected]","st":1493672886000},"[email protected]":{"d":"/Applications/Firefox.app/Contents/Resources/browser/features/[email protected]","st":1493672886000},"[email protected]":{"d":"/Applications/Firefox.app/Contents/Resources/browser/features/[email protected]","st":1493672886000},"[email protected]":{"d":"/Applications/Firefox.app/Contents/Resources/browser/features/[email protected]","st":1493672886000},"[email protected]":{"d":"/Applications/Firefox.app/Contents/Resources/browser/features/[email protected]","st":1493672886000}},"app-global":{"{972ce4c6-7e08-4474-a285-3208198ce6fd}":{"d":"/Applications/Firefox.app/Contents/Resources/browser/extensions/{972ce4c6-7e08-4474-a285-3208198ce6fd}.xpi","st":1493672886000}}}
1494159076870 addons.xpi-utils DEBUG Opening XPI database /var/folders/g7/blgwjx0x3rb04ntsb0kdyczc0000gn/T/rust_mozprofile.9XLSSFPOpXPy/extensions.json
1494159076871 addons.xpi-utils DEBUG New add-on [email protected] installed in app-system-defaults
*** Blocklist::_loadBlocklistFromFile: blocklist is disabled
1494159076884 DeferredSave.extensions.json DEBUG Save changes
1494159076884 addons.xpi-utils DEBUG New add-on [email protected] installed in app-system-defaults
1494159076889 DeferredSave.extensions.json DEBUG Starting timer
1494159076891 DeferredSave.extensions.json DEBUG Save changes
1494159076891 addons.xpi-utils DEBUG New add-on [email protected] installed in app-system-defaults
1494159076901 DeferredSave.extensions.json DEBUG Save changes
1494159076901 addons.xpi-utils DEBUG New add-on [email protected] installed in app-system-defaults
1494159076909 DeferredSave.extensions.json DEBUG Save changes
1494159076910 addons.xpi-utils DEBUG New add-on [email protected] installed in app-system-defaults
1494159076915 DeferredSave.extensions.json DEBUG Save changes
1494159076915 addons.xpi-utils DEBUG New add-on {972ce4c6-7e08-4474-a285-3208198ce6fd} installed in app-global
1494159076921 DeferredSave.extensions.json DEBUG Save changes
1494159076922 addons.manager DEBUG Registering startup change 'installed' for [email protected]
1494159076936 addons.xpi DEBUG Loading bootstrap scope from /Applications/Firefox.app/Contents/Resources/browser/features/[email protected]
1494159076942 addons.xpi DEBUG Calling bootstrap method install on [email protected] version 2.0
1494159076942 addons.xpi-utils DEBUG Make addon app-system-defaults:[email protected] visible
1494159076943 DeferredSave.extensions.json DEBUG Save changes
1494159076944 addons.manager DEBUG Registering startup change 'installed' for [email protected]
1494159076945 addons.xpi DEBUG Loading bootstrap scope from /Applications/Firefox.app/Contents/Resources/browser/features/[email protected]
1494159076947 addons.xpi DEBUG Calling bootstrap method install on [email protected] version 1.50
1494159076948 addons.xpi-utils DEBUG Make addon app-system-defaults:[email protected] visible
1494159076949 DeferredSave.extensions.json DEBUG Save changes
1494159076949 addons.manager DEBUG Registering startup change 'installed' for [email protected]
1494159076950 addons.xpi DEBUG Loading bootstrap scope from /Applications/Firefox.app/Contents/Resources/browser/features/[email protected]
1494159076954 addons.xpi DEBUG Calling bootstrap method install on [email protected] version 1.0.5
1494159076954 addons.xpi-utils DEBUG Make addon app-system-defaults:[email protected] visible
1494159076954 DeferredSave.extensions.json DEBUG Save changes
1494159076955 addons.manager DEBUG Registering startup change 'installed' for [email protected]
1494159076955 addons.xpi DEBUG Loading bootstrap scope from /Applications/Firefox.app/Contents/Resources/browser/features/[email protected]
1494159076958 addons.xpi DEBUG Calling bootstrap method install on [email protected] version 6.3.0
1494159076958 addons.xpi-utils DEBUG Make addon app-system-defaults:[email protected] visible
1494159076959 DeferredSave.extensions.json DEBUG Save changes
1494159076959 addons.manager DEBUG Registering startup change 'installed' for [email protected]
1494159076960 addons.xpi DEBUG Loading bootstrap scope from /Applications/Firefox.app/Contents/Resources/browser/features/[email protected]
1494159076962 addons.xpi DEBUG Calling bootstrap method install on [email protected] version 1.1
1494159076962 addons.xpi-utils DEBUG Make addon app-system-defaults:[email protected] visible
1494159076963 DeferredSave.extensions.json DEBUG Save changes
1494159076964 addons.xpi-utils DEBUG Make addon app-global:{972ce4c6-7e08-4474-a285-3208198ce6fd} visible
1494159076964 DeferredSave.extensions.json DEBUG Save changes
1494159076965 addons.xpi DEBUG Updating XPIState for {"id":"[email protected]","syncGUID":"{5199ec6d-c286-ed40-b776-a84376e3646d}","location":"app-system-defaults","version":"2.0","type":"extension","internalName":null,"updateURL":null,"updateKey":null,"optionsURL":null,"optionsType":null,"aboutURL":null,"icons":{},"iconURL":null,"icon64URL":null,"defaultLocale":{"name":"Application Update Service Helper","description":"Sets value(s) in the update url based on custom checks.","creator":null,"homepageURL":null},"visible":true,"active":true,"userDisabled":false,"appDisabled":false,"descriptor":"/Applications/Firefox.app/Contents/Resources/browser/features/[email protected]","installDate":1493672886000,"updateDate":1493672886000,"applyBackgroundUpdates":1,"bootstrap":true,"skinnable":false,"size":8486,"sourceURI":null,"releaseNotesURI":null,"softDisabled":false,"foreignInstall":false,"hasBinaryComponents":false,"strictCompatibility":false,"locales":[],"targetApplications":[{"id":"{ec8030f7-c20a-464f-9b0e-13a3a9e97384}","minVersion":"54.0","maxVersion":"54.*"}],"targetPlatforms":[],"multiprocessCompatible":true,"seen":true,"dependencies":[],"hasEmbeddedWebExtension":false,"mpcOptedOut":false,"userPermissions":null}
1494159076965 addons.xpi DEBUG getModTime: Recursive scan of [email protected]
1494159076965 addons.xpi DEBUG Updating XPIState for {"id":"[email protected]","syncGUID":"{7dc3164c-0136-e240-9c35-f5f7b408d82b}","location":"app-system-defaults","version":"1.50","type":"extension","internalName":null,"updateURL":null,"updateKey":null,"optionsURL":null,"optionsType":null,"aboutURL":null,"icons":{},"iconURL":null,"icon64URL":null,"defaultLocale":{"name":"Multi-process staged rollout","description":"Staged rollout of Firefox multi-process feature.","creator":null,"homepageURL":null},"visible":true,"active":true,"userDisabled":false,"appDisabled":false,"descriptor":"/Applications/Firefox.app/Contents/Resources/browser/features/[email protected]","installDate":1493672886000,"updateDate":1493672886000,"applyBackgroundUpdates":1,"bootstrap":true,"skinnable":false,"size":12188,"sourceURI":null,"releaseNotesURI":null,"softDisabled":false,"foreignInstall":false,"hasBinaryComponents":false,"strictCompatibility":false,"locales":[],"targetApplications":[{"id":"{ec8030f7-c20a-464f-9b0e-13a3a9e97384}","minVersion":"54.0","maxVersion":"54.*"}],"targetPlatforms":[],"multiprocessCompatible":true,"seen":true,"dependencies":[],"hasEmbeddedWebExtension":false,"mpcOptedOut":false,"userPermissions":null}
1494159076966 addons.xpi DEBUG getModTime: Recursive scan of [email protected]
1494159076966 addons.xpi DEBUG Updating XPIState for {"id":"[email protected]","syncGUID":"{058d4724-d229-144f-8524-75f00bd6bb41}","location":"app-system-defaults","version":"1.0.5","type":"extension","internalName":null,"updateURL":null,"updateKey":null,"optionsURL":null,"optionsType":null,"aboutURL":null,"icons":{},"iconURL":null,"icon64URL":null,"defaultLocale":{"name":"Pocket","description":"When you find something you want to view later, put it in Pocket.","creator":null,"homepageURL":null},"visible":true,"active":true,"userDisabled":false,"appDisabled":false,"descriptor":"/Applications/Firefox.app/Contents/Resources/browser/features/[email protected]","installDate":1493672886000,"updateDate":1493672886000,"applyBackgroundUpdates":1,"bootstrap":true,"skinnable":false,"size":913904,"sourceURI":null,"releaseNotesURI":null,"softDisabled":false,"foreignInstall":false,"hasBinaryComponents":false,"strictCompatibility":false,"locales":[],"targetApplications":[{"id":"{ec8030f7-c20a-464f-9b0e-13a3a9e97384}","minVersion":"54.0","maxVersion":"54.*"}],"targetPlatforms":[],"multiprocessCompatible":true,"seen":true,"dependencies":[],"hasEmbeddedWebExtension":false,"mpcOptedOut":false,"userPermissions":null}
1494159076966 addons.xpi DEBUG getModTime: Recursive scan of [email protected]
1494159076967 addons.xpi DEBUG Updating XPIState for {"id":"[email protected]","syncGUID":"{60f91275-564b-f840-8db7-4465ec34e720}","location":"app-system-defaults","version":"6.3.0","type":"extension","internalName":null,"updateURL":null,"updateKey":null,"optionsURL":null,"optionsType":null,"aboutURL":null,"icons":{},"iconURL":null,"icon64URL":null,"defaultLocale":{"name":"Firefox Screenshots","description":null,"creator":null,"homepageURL":"https://pageshot.net/"},"visible":true,"active":true,"userDisabled":false,"appDisabled":false,"descriptor":"/Applications/Firefox.app/Contents/Resources/browser/features/[email protected]","installDate":1493672886000,"updateDate":1493672886000,"applyBackgroundUpdates":1,"bootstrap":true,"skinnable":false,"size":668434,"sourceURI":null,"releaseNotesURI":null,"softDisabled":false,"foreignInstall":false,"hasBinaryComponents":false,"strictCompatibility":false,"locales":[],"targetApplications":[{"id":"{ec8030f7-c20a-464f-9b0e-13a3a9e97384}","minVersion":"51.0a1","maxVersion":"*"}],"targetPlatforms":[],"multiprocessCompatible":true,"seen":true,"dependencies":[],"hasEmbeddedWebExtension":false,"mpcOptedOut":false,"userPermissions":null}
1494159076967 addons.xpi DEBUG getModTime: Recursive scan of [email protected]
1494159076967 addons.xpi DEBUG Updating XPIState for {"id":"[email protected]","syncGUID":"{0d03eca1-775a-5a46-9b49-bd3254949ec3}","location":"app-system-defaults","version":"1.1","type":"extension","internalName":null,"updateURL":null,"updateKey":null,"optionsURL":null,"optionsType":null,"aboutURL":null,"icons":{},"iconURL":null,"icon64URL":null,"defaultLocale":{"name":"Web Compat","description":"Urgent post-release fixes for web compatibility.","creator":null,"homepageURL":null},"visible":true,"active":true,"userDisabled":false,"appDisabled":false,"descriptor":"/Applications/Firefox.app/Contents/Resources/browser/features/[email protected]","installDate":1493672886000,"updateDate":1493672886000,"applyBackgroundUpdates":1,"bootstrap":true,"skinnable":false,"size":9004,"sourceURI":null,"releaseNotesURI":null,"softDisabled":false,"foreignInstall":false,"hasBinaryComponents":false,"strictCompatibility":false,"locales":[],"targetApplications":[{"id":"{ec8030f7-c20a-464f-9b0e-13a3a9e97384}","minVersion":"54.0","maxVersion":"54.*"}],"targetPlatforms":[],"multiprocessCompatible":true,"seen":true,"dependencies":[],"hasEmbeddedWebExtension":false,"mpcOptedOut":false,"userPermissions":null}
1494159076967 addons.xpi DEBUG getModTime: Recursive scan of [email protected]
1494159076968 addons.xpi DEBUG Updating XPIState for {"id":"{972ce4c6-7e08-4474-a285-3208198ce6fd}","syncGUID":"{fc2ad810-6fe6-fa40-8e44-90ea9f64737d}","location":"app-global","version":"54.0","type":"theme","internalName":"classic/1.0","updateURL":null,"updateKey":null,"optionsURL":null,"optionsType":null,"aboutURL":null,"icons":{},"iconURL":"chrome://browser/content/default-theme-icon.svg","icon64URL":null,"defaultLocale":{"name":"Default","description":"The default theme.","creator":"Mozilla","homepageURL":null,"contributors":["Mozilla Contributors"]},"visible":true,"active":true,"userDisabled":false,"appDisabled":false,"descriptor":"/Applications/Firefox.app/Contents/Resources/browser/extensions/{972ce4c6-7e08-4474-a285-3208198ce6fd}.xpi","installDate":1493672886000,"updateDate":1493672886000,"applyBackgroundUpdates":1,"skinnable":true,"size":3908,"sourceURI":null,"releaseNotesURI":null,"softDisabled":false,"foreignInstall":false,"hasBinaryComponents":false,"strictCompatibility":true,"locales":[],"targetApplications":[{"id":"{ec8030f7-c20a-464f-9b0e-13a3a9e97384}","minVersion":"54.0","maxVersion":"54.0"}],"targetPlatforms":[],"seen":true,"dependencies":[],"hasEmbeddedWebExtension":false,"userPermissions":null}
1494159076968 addons.xpi DEBUG getModTime: Recursive scan of {972ce4c6-7e08-4474-a285-3208198ce6fd}
1494159076969 DeferredSave.extensions.json DEBUG Save changes
1494159076969 addons.xpi DEBUG Updating database with changes to installed add-ons
1494159076969 addons.xpi-utils DEBUG Updating add-on states
1494159076970 addons.xpi-utils DEBUG Writing add-ons list
1494159076972 addons.xpi DEBUG Registering manifest for /Applications/Firefox.app/Contents/Resources/browser/features/[email protected]
1494159076972 addons.xpi DEBUG Calling bootstrap method startup on [email protected] version 2.0
1494159076974 addons.xpi DEBUG Registering manifest for /Applications/Firefox.app/Contents/Resources/browser/features/[email protected]
1494159076974 addons.xpi DEBUG Calling bootstrap method startup on [email protected] version 1.50
1494159076975 addons.xpi DEBUG Registering manifest for /Applications/Firefox.app/Contents/Resources/browser/features/[email protected]
1494159076976 addons.xpi DEBUG Calling bootstrap method startup on [email protected] version 1.0.5
1494159076977 addons.xpi DEBUG Registering manifest for /Applications/Firefox.app/Contents/Resources/browser/features/[email protected]
1494159076977 addons.xpi DEBUG Calling bootstrap method startup on [email protected] version 6.3.0
1494159076978 addons.xpi DEBUG Registering manifest for /Applications/Firefox.app/Contents/Resources/browser/features/[email protected]
1494159076978 addons.xpi DEBUG Calling bootstrap method startup on [email protected] version 1.1
1494159076985 addons.manager DEBUG Registering shutdown blocker for XPIProvider
1494159076986 addons.manager DEBUG Provider finished startup: XPIProvider
1494159076987 addons.manager DEBUG Starting provider: LightweightThemeManager
1494159076987 addons.manager DEBUG Registering shutdown blocker for LightweightThemeManager
1494159076987 addons.manager DEBUG Provider finished startup: LightweightThemeManager
1494159076988 addons.manager DEBUG Starting provider: GMPProvider
1494159076995 addons.manager DEBUG Registering shutdown blocker for GMPProvider
1494159076997 addons.manager DEBUG Provider finished startup: GMPProvider
1494159076998 addons.manager DEBUG Starting provider: PluginProvider
1494159076998 addons.manager DEBUG Registering shutdown blocker for PluginProvider
1494159076998 addons.manager DEBUG Provider finished startup: PluginProvider
1494159076999 addons.manager DEBUG Completed startup sequence
1494159077472 addons.manager DEBUG Starting provider: <unnamed-provider>
1494159077472 addons.manager DEBUG Registering shutdown blocker for <unnamed-provider>
1494159077472 addons.manager DEBUG Provider finished startup: <unnamed-provider>
1494159077510 addons.manager DEBUG Starting provider: PreviousExperimentProvider
1494159077510 addons.manager DEBUG Registering shutdown blocker for PreviousExperimentProvider
1494159077511 addons.manager DEBUG Provider finished startup: PreviousExperimentProvider
1494159077515 DeferredSave.extensions.json DEBUG Starting write
1494159077679 DeferredSave.extensions.json DEBUG Write succeeded
1494159077679 addons.xpi-utils DEBUG XPI Database saved, setting schema version preference to 19
1494159079020 Marionette INFO Listening on port 64682
org.openqa.selenium.SessionNotCreatedException: InvalidArgumentError: Expected [object Undefined] undefined to be an integer
Build info: version: '3.4.0', revision: 'unknown', time: 'unknown'
System info: host: 'obil-sazulay.il.outbrain.com', ip: 'fe80:0:0:0:44e:6923:f0cc:1269%en0', os.name: 'Mac OS X', os.arch: 'x86_64', os.version: '10.12.4', java.version: '1.8.0_91'
Driver info: driver.version: FirefoxDriver
remote stacktrace: stack backtrace:
0: 0x10d10d82e - backtrace::backtrace::trace::h76b688ec9dd0c4e2
1: 0x10d10df6c - backtrace::capture::Backtrace::new::hb5a725a088a2a2fc
2: 0x10d0c09cf - webdriver::error::WebDriverError::new::h7184d15bc5556898
3: 0x10d0d0ffb - geckodriver::marionette::MarionetteSession::response::h3a41c0cc62e59c56
4: 0x10d0cee93 - _$LT$geckodriver..marionette..MarionetteHandler$u20$as$u20$webdriver..server..WebDriverHandler$LT$geckodriver..marionette..GeckoExtensionRoute$GT$$GT$::handle_command::hcb53484f0f6d535e
5: 0x10d0c0e60 - webdriver::server::start::_$u7b$$u7b$closure$u7d$$u7d$::he6d10c2fe3c7e795
6: 0x10d096a5d - std::panicking::try::do_call::hd7b79b66c427c537
7: 0x10d238d1a - __rust_maybe_catch_panic
8: 0x10d0a379a - _$LT$F$u20$as$u20$alloc..boxed..FnBox$LT$A$GT$$GT$::call_box::hde402662965177dc
9: 0x10d237174 - std::sys::imp::thread::Thread::new::thread_start::hca57ad22492f366f
10: 0x7fffc4bca9ae - _pthread_body
11: 0x7fffc4bca8fa - _pthread_start
Command duration or timeout: 3.84 seconds
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.ErrorHandler.createThrowable(ErrorHandler.java:215)
at org.openqa.selenium.remote.ErrorHandler.throwIfResponseFailed(ErrorHandler.java:167)
at org.openqa.selenium.remote.JsonWireProtocolResponse.lambda$new$0(JsonWireProtocolResponse.java:53)
at org.openqa.selenium.remote.JsonWireProtocolResponse.lambda$getResponseFunction$2(JsonWireProtocolResponse.java:91)
at org.openqa.selenium.remote.ProtocolHandshake.lambda$createSession$22(ProtocolHandshake.java:365)
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:368)
at org.openqa.selenium.remote.ProtocolHandshake.createSession(ProtocolHandshake.java:159)
at org.openqa.selenium.remote.HttpCommandExecutor.execute(HttpCommandExecutor.java:142)
at org.openqa.selenium.remote.RemoteWebDriver.execute(RemoteWebDriver.java:637)
at org.openqa.selenium.remote.RemoteWebDriver.startSession(RemoteWebDriver.java:250)
at org.openqa.selenium.remote.RemoteWebDriver.startSession(RemoteWebDriver.java:236)
at org.openqa.selenium.remote.RemoteWebDriver.<init>(RemoteWebDriver.java:137)
at org.openqa.selenium.remote.RemoteWebDriver.<init>(RemoteWebDriver.java:174)
at com.outbrain.selenium.infra.WebDriverFactory.getDriver(WebDriverFactory.java:79)
at com.outbrain.selenium.common.BaseSeleniumTest.initBaseSeleniumTest(BaseSeleniumTest.java:86)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:45)
at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:15)
at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:42)
at org.junit.internal.runners.statements.RunBefores.evaluate(RunBefores.java:27)
at org.junit.internal.runners.statements.RunAfters.evaluate(RunAfters.java:30)
at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:263)
at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:68)
at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:47)
at org.junit.runners.ParentRunner$3.run(ParentRunner.java:231)
at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:60)
at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:229)
at org.junit.runners.ParentRunner.access$000(ParentRunner.java:50)
at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:222)
at org.junit.runners.ParentRunner.run(ParentRunner.java:300)
at org.junit.runner.JUnitCore.run(JUnitCore.java:157)
at com.intellij.junit4.JUnit4IdeaTestRunner.startRunnerWithArgs(JUnit4IdeaTestRunner.java:68)
at com.intellij.rt.execution.junit.IdeaTestRunner$Repeater.startRunnerWithArgs(IdeaTestRunner.java:51)
at com.intellij.rt.execution.junit.JUnitStarter.prepareStreamsAndStart(JUnitStarter.java:237)
at com.intellij.rt.execution.junit.JUnitStarter.main(JUnitStarter.java:70)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at com.intellij.rt.execution.application.AppMain.main(AppMain.java:147)
Caused by: org.openqa.selenium.SessionNotCreatedException: InvalidArgumentError: Expected [object Undefined] undefined to be an integer
Build info: version: '3.4.0', revision: 'unknown', time: 'unknown'
System info: host: 'obil-sazulay.il.outbrain.com', ip: 'fe80:0:0:0:44e:6923:f0cc:1269%en0', os.name: 'Mac OS X', os.arch: 'x86_64', os.version: '10.12.4', java.version: '1.8.0_91'
Driver info: driver.version: FirefoxDriver
remote stacktrace: stack backtrace:
0: 0x10d10d82e - backtrace::backtrace::trace::h76b688ec9dd0c4e2
1: 0x10d10df6c - backtrace::capture::Backtrace::new::hb5a725a088a2a2fc
2: 0x10d0c09cf - webdriver::error::WebDriverError::new::h7184d15bc5556898
3: 0x10d0d0ffb - geckodriver::marionette::MarionetteSession::response::h3a41c0cc62e59c56
4: 0x10d0cee93 - _$LT$geckodriver..marionette..MarionetteHandler$u20$as$u20$webdriver..server..WebDriverHandler$LT$geckodriver..marionette..GeckoExtensionRoute$GT$$GT$::handle_command::hcb53484f0f6d535e
5: 0x10d0c0e60 - webdriver::server::start::_$u7b$$u7b$closure$u7d$$u7d$::he6d10c2fe3c7e795
6: 0x10d096a5d - std::panicking::try::do_call::hd7b79b66c427c537
7: 0x10d238d1a - __rust_maybe_catch_panic
8: 0x10d0a379a - _$LT$F$u20$as$u20$alloc..boxed..FnBox$LT$A$GT$$GT$::call_box::hde402662965177dc
9: 0x10d237174 - std::sys::imp::thread::Thread::new::thread_start::hca57ad22492f366f
10: 0x7fffc4bca9ae - _pthread_body
11: 0x7fffc4bca8fa - _pthread_start
Build info: version: '3.4.0', revision: 'unknown', time: 'unknown'
System info: host: 'obil-sazulay.il.outbrain.com', ip: 'fe80:0:0:0:44e:6923:f0cc:1269%en0', os.name: 'Mac OS X', os.arch: 'x86_64', os.version: '10.12.4', java.version: '1.8.0_91'
Driver info: driver.version: FirefoxDriver
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$22(ProtocolHandshake.java:365)
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:368)
at org.openqa.selenium.remote.ProtocolHandshake.createSession(ProtocolHandshake.java:159)
at org.openqa.selenium.remote.HttpCommandExecutor.execute(HttpCommandExecutor.java:142)
at org.openqa.selenium.remote.service.DriverCommandExecutor.execute(DriverCommandExecutor.java:82)
at org.openqa.selenium.remote.RemoteWebDriver.execute(RemoteWebDriver.java:637)
at org.openqa.selenium.remote.RemoteWebDriver.startSession(RemoteWebDriver.java:250)
at org.openqa.selenium.remote.RemoteWebDriver.startSession(RemoteWebDriver.java:236)
at org.openqa.selenium.remote.RemoteWebDriver.<init>(RemoteWebDriver.java:137)
at org.openqa.selenium.firefox.FirefoxDriver.<init>(FirefoxDriver.java:191)
at org.openqa.selenium.firefox.FirefoxDriver.<init>(FirefoxDriver.java:108)
at org.openqa.selenium.firefox.FirefoxDriver.<init>(FirefoxDriver.java:137)
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.server.FirefoxDriverProvider.callConstructor(FirefoxDriverProvider.java:81)
at org.openqa.selenium.remote.server.FirefoxDriverProvider.newInstance(FirefoxDriverProvider.java:63)
at org.openqa.selenium.remote.server.DefaultDriverFactory.newInstance(DefaultDriverFactory.java:60)
at org.openqa.selenium.remote.server.DefaultSession$BrowserCreator.call(DefaultSession.java:222)
at org.openqa.selenium.remote.server.DefaultSession$BrowserCreator.call(DefaultSession.java:209)
at java.util.concurrent.FutureTask.run(FutureTask.java:266)
at org.openqa.selenium.remote.server.DefaultSession$1.run(DefaultSession.java:176)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
at java.lang.Thread.run(Thread.java:745)
15:11:19,285 INFO DefaultHttpProxyServer:487 - Shutting down proxy
15:11:19,285 INFO DefaultHttpProxyServer:493 - Closing all channels...
2017-05-07 15:11:19.448 plugin-container[99596:6532831] *** CFMessagePort: bootstrap_register(): failed 1100 (0x44c) 'Permission denied', port = 0x9c3b, name = 'com.apple.tsm.portname'
See /usr/include/servers/bootstrap_defs.h for the error codes.
2017-05-07 15:11:19.449 plugin-container[99596:6532831] *** CFMessagePort: bootstrap_register(): failed 1100 (0x44c) 'Permission denied', port = 0x9f03, name = 'com.apple.CFPasteboardClient'
See /usr/include/servers/bootstrap_defs.h for the error codes.
@shyoro That log isn’t particularly helpful since you didn’t add any of the information I requested in https://github.com/mozilla/geckodriver/issues/669#issuecomment-298944496.
It would be useful if you tried this with the most recent Firefox Nightly and Selenium versions.
Any Updates on this one?
Closing due to inactivity. Happy to reopen when a trace-level log has been added. Without this we’re unable to diagnose the issue.
@andreastt Here are some trace-level logs:
1495475878949 geckodriver INFO Listening on 127.0.0.1:10091 1495475879203 geckodriver::marionette INFO Starting browser /Applications/Firefox.app/Contents/MacOS/firefox-bin with args ["-marionette"] 1495475879208 geckodriver::marionette TRACE connection attempt 0/600 1495475879313 geckodriver::marionette TRACE connection attempt 1/600 1495475879417 geckodriver::marionette TRACE connection attempt 2/600 1495475879519 geckodriver::marionette TRACE connection attempt 3/600 1495475879622 geckodriver::marionette TRACE connection attempt 4/600 1495475879727 geckodriver::marionette TRACE connection attempt 5/600 1495475879755 Marionette DEBUG Marionette enabled via command-line flag 1495475879832 geckodriver::marionette TRACE connection attempt 6/600 1495475879935 geckodriver::marionette TRACE connection attempt 7/600 1495475880039 geckodriver::marionette TRACE connection attempt 8/600 1495475880143 geckodriver::marionette TRACE connection attempt 9/600 1495475880247 geckodriver::marionette TRACE connection attempt 10/600 1495475880353 geckodriver::marionette TRACE connection attempt 11/600 1495475880458 geckodriver::marionette TRACE connection attempt 12/600 1495475880563 geckodriver::marionette TRACE connection attempt 13/600 1495475880667 geckodriver::marionette TRACE connection attempt 14/600 1495475880770 geckodriver::marionette TRACE connection attempt 15/600 1495475880818 Marionette INFO Listening on port 57481 1495475880875 geckodriver::marionette DEBUG Connected to Marionette on localhost:57481 1495475880901 Marionette DEBUG Accepted connection conn0 from 127.0.0.1:57520 1495475880926 geckodriver::marionette TRACE ← {"applicationType":"gecko","marionetteProtocol":3} 1495475880926 geckodriver::marionette TRACE → 677:[0,1,"newSession",{"acceptInsecureCerts":true,"browserName":"firefox","capabilities":{"desiredCapabilities":{"acceptInsecureCerts":true,"browserName":"firefox","proxy":{"ftpProxy":"qa-agrippa-proxy.lab","ftpProxyPort":33200,"httpProxy":"qa-agrippa-proxy.lab","httpProxyPort":33200,"proxyType":"manual","socksProxy":"qa-agrippa-proxy.lab","socksProxyPort":33200,"sslProxy":"qa-agrippa-proxy.lab","sslProxyPort":33200}}},"proxy":{"ftpProxy":"qa-agrippa-proxy.lab","ftpProxyPort":33200,"httpProxy":"qa-agrippa-proxy.lab","httpProxyPort":33200,"proxyType":"manual","socksProxy":"qa-agrippa-proxy.lab","socksProxyPort":33200,"sslProxy":"qa-agrippa-proxy.lab","sslProxyPort":33200}}] 1495475880932 Marionette TRACE conn0 -> [0,1,"newSession",{"acceptInsecureCerts":true,"browserName":"firefox","capabilities":{"desiredCapabilities":{"acceptInsecureCerts":true,"browserName":"firefox","proxy":{"ftpProxy":"qa-agrippa-proxy.lab","ftpProxyPort":33200,"httpProxy":"qa-agrippa-proxy.lab","httpProxyPort":33200,"proxyType":"manual","socksProxy":"qa-agrippa-proxy.lab","socksProxyPort":33200,"sslProxy":"qa-agrippa-proxy.lab","sslProxyPort":33200}}},"proxy":{"ftpProxy":"qa-agrippa-proxy.lab","ftpProxyPort":33200,"httpProxy":"qa-agrippa-proxy.lab","httpProxyPort":33200,"proxyType":"manual","socksProxy":"qa-agrippa-proxy.lab","socksProxyPort":33200,"sslProxy":"qa-agrippa-proxy.lab","sslProxyPort":33200}}] 1495475880939 Marionette TRACE conn0 <- [1,1,{"error":"session not created","message":"InvalidArgumentError: Expected [object Undefined] undefined to be an integer","stacktrace":"WebDriverError@chrome://marionette/content/error.js:200:5\nInvalidArgumentError@chrome://marionette/content/error.js:290:5\nassert.that/<@chrome://marionette/content/assert.js:345:13\nassert.integer@chrome://marionette/content/assert.js:201:10\nassert.positiveInteger@chrome://marionette/content/assert.js:219:3\nfromJSON@chrome://marionette/content/session.js:204:31\nmatch_@chrome://marionette/content/session.js:368:23\nfromJSON@chrome://marionette/content/session.js:281:12\nGeckoDriver.prototype.newSession@chrome://marionette/content/driver.js:596:25\nTaskImpl_run@resource://gre/modules/Task.jsm:319:42\nTaskImpl@resource://gre/modules/Task.jsm:277:3\nasyncFunction@resource://gre/modules/Task.jsm:252:14\nTask_spawn@resource://gre/modules/Task.jsm:166:12\nTaskImpl_handleResultValue@resource://gre/modules/Task.jsm:389:16\nTaskImpl_run@resource://gre/modules/Task.jsm:327:15\nTaskImpl@resource://gre/modules/Task.jsm:277:3\nasyncFunction@resource://gre/modules/Task.jsm:252:14\nTask_spawn@resource://gre/modules/Task.jsm:166:12\nDispatcher.prototype.execute@chrome://marionette/content/dispatcher.js:118:13\nDispatcher.prototype.onPacket@chrome://marionette/content/dispatcher.js:89:5\n_onJSONObjectReady/<@chrome://marionette/content/server.js -> resource://devtools/shared/transport/transport.js:483:11\nexports.makeInfallible/<@resource://gre/modules/commonjs/toolkit/loader.js -> resource://devtools/shared/ThreadSafeDevToolsUtils.js:101:14\nexports.makeInfallible/<@resource://gre/modules/commonjs/toolkit/loader.js -> resource://devtools/shared/ThreadSafeDevToolsUtils.js:101:14\n"},null] 1495475880942 geckodriver::marionette TRACE ← [1,1,{"error":"session not created","message":"InvalidArgumentError: Expected [object Undefined] undefined to be an integer","stacktrace":"WebDriverError@chrome://marionette/content/error.js:200:5\nInvalidArgumentError@chrome://marionette/content/error.js:290:5\nassert.that/<@chrome://marionette/content/assert.js:345:13\nassert.integer@chrome://marionette/content/assert.js:201:10\nassert.positiveInteger@chrome://marionette/content/assert.js:219:3\nfromJSON@chrome://marionette/content/session.js:204:31\nmatch_@chrome://marionette/content/session.js:368:23\nfromJSON@chrome://marionette/content/session.js:281:12\nGeckoDriver.prototype.newSession@chrome://marionette/content/driver.js:596:25\nTaskImpl_run@resource://gre/modules/Task.jsm:319:42\nTaskImpl@resource://gre/modules/Task.jsm:277:3\nasyncFunction@resource://gre/modules/Task.jsm:252:14\nTask_spawn@resource://gre/modules/Task.jsm:166:12\nTaskImpl_handleResultValue@resource://gre/modules/Task.jsm:389:16\nTaskImpl_run@resource://gre/modules/Task.jsm:327:15\nTaskImpl@resource://gre/modules/Task.jsm:277:3\nasyncFunction@resource://gre/modules/Task.jsm:252:14\nTask_spawn@resource://gre/modules/Task.jsm:166:12\nDispatcher.prototype.execute@chrome://marionette/content/dispatcher.js:118:13\nDispatcher.prototype.onPacket@chrome://marionette/content/dispatcher.js:89:5\n_onJSONObjectReady/<@chrome://marionette/content/server.js -> resource://devtools/shared/transport/transport.js:483:11\nexports.makeInfallible/<@resource://gre/modules/commonjs/toolkit/loader.js -> resource://devtools/shared/ThreadSafeDevToolsUtils.js:101:14\nexports.makeInfallible/<@resource://gre/modules/commonjs/toolkit/loader.js -> resource://devtools/shared/ThreadSafeDevToolsUtils.js:101:14\n"},null] 1495475880958 webdriver::server DEBUG ← 500 Internal Server Error {"value":{"error":"session not created","message":"InvalidArgumentError: Expected [object Undefined] undefined to be an integer","stacktrace":"stack backtrace:\n 0: 0x10df4c82e - backtrace::backtrace::trace::h76b688ec9dd0c4e2\n 1: 0x10df4cf6c - backtrace::capture::Backtrace::new::hb5a725a088a2a2fc\n 2: 0x10deff9cf - webdriver::error::WebDriverError::new::h7184d15bc5556898\n 3: 0x10df0fffb - geckodriver::marionette::MarionetteSession::response::h3a41c0cc62e59c56\n 4: 0x10df0de93 - $LT$geckodriver..marionette..MarionetteHandler$u20$as$u20$webdriver..server..WebDriverHandler$LT$geckodriver..marionette..GeckoExtensionRoute$GT$$GT$::handle_command::hcb53484f0f6d535e\n 5: 0x10deffe60 - webdriver::server::start::$u7b$$u7b$closure$u7d$$u7d$::he6d10c2fe3c7e795\n 6: 0x10ded5a5d - std::panicking::try::do_call::hd7b79b66c427c537\n 7: 0x10e077d1a - __rust_maybe_catch_panic\n 8: 0x10dee279a - _$LT$F$u20$as$u20$alloc..boxed..FnBox$LT$A$GT$$GT$::call_box::hde402662965177dc\n 9: 0x10e076174 - std::sys::imp::thread::Thread::new::thread_start::hca57ad22492f366f\n 10: 0x7fff9df4893a - _pthread_body\n 11: 0x7fff9df48886 - _pthread_start"}}
org.openqa.selenium.SessionNotCreatedException: InvalidArgumentError: Expected [object Undefined] undefined to be an integer
Build info: version: '3.4.0', revision: 'unknown', time: 'unknown'
System info: host: 'retina.local', ip: 'fe80:0:0:0:811:92f:213e:c99d%en0', os.name: 'Mac OS X', os.arch: 'x86_64', os.version: '10.12.5', java.version: '1.8.0_121'
Driver info: driver.version: FirefoxDriver
remote stacktrace: stack backtrace:
0: 0x10df4c82e - backtrace::backtrace::trace::h76b688ec9dd0c4e2
1: 0x10df4cf6c - backtrace::capture::Backtrace::new::hb5a725a088a2a2fc
2: 0x10deff9cf - webdriver::error::WebDriverError::new::h7184d15bc5556898
3: 0x10df0fffb - geckodriver::marionette::MarionetteSession::response::h3a41c0cc62e59c56
4: 0x10df0de93 - $LT$geckodriver..marionette..MarionetteHandler$u20$as$u20$webdriver..server..WebDriverHandler$LT$geckodriver..marionette..GeckoExtensionRoute$GT$$GT$::handle_command::hcb53484f0f6d535e
5: 0x10deffe60 - webdriver::server::start::$u7b$$u7b$closure$u7d$$u7d$::he6d10c2fe3c7e795
6: 0x10ded5a5d - std::panicking::try::do_call::hd7b79b66c427c537
7: 0x10e077d1a - __rust_maybe_catch_panic
8: 0x10dee279a - _$LT$F$u20$as$u20$alloc..boxed..FnBox$LT$A$GT$$GT$::call_box::hde402662965177dc
9: 0x10e076174 - std::sys::imp::thread::Thread::new::thread_start::hca57ad22492f366f
10: 0x7fff9df4893a - _pthread_body
11: 0x7fff9df48886 - _pthread_start
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$22(ProtocolHandshake.java:365)
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:368)
at org.openqa.selenium.remote.ProtocolHandshake.createSession(ProtocolHandshake.java:159)
at org.openqa.selenium.remote.HttpCommandExecutor.execute(HttpCommandExecutor.java:142)
at org.openqa.selenium.remote.service.DriverCommandExecutor.execute(DriverCommandExecutor.java:82)
at org.openqa.selenium.remote.RemoteWebDriver.execute(RemoteWebDriver.java:637)
at org.openqa.selenium.remote.RemoteWebDriver.startSession(RemoteWebDriver.java:250)
at org.openqa.selenium.remote.RemoteWebDriver.startSession(RemoteWebDriver.java:236)
at org.openqa.selenium.remote.RemoteWebDriver.
@asolntsev can you repoen this please, given above trace-level logs.
@wfloutier I cannot re-open the issue that was closed by a repo collaborator. @andreastt Please re-open the issue. We got the trace-level logs.
It looks like this is happening in Marionette for the following line:
assert.positiveInteger(json.socksProxyVersion);
The above trace log doesn't list this property and as such we fail. I wonder if this should be handled as optional. @andreastt can you please check?
A workaround might be to just add a valid version for the socks proxy into the capabilities.
@whimboo @andreastt What would have been the behavior if the socksProxy/socksProxyPort hadn't been set at all? For that matter, what would be the behavior if only a single type of proxy was set - e.g. FTP and no others?
@whimboo I still see this issue even if I set a fake socks proxy.
I'm experiencing this issue as well and might have logged an identical issue #762. If it is, then I'll close it.
Just to chip in here, I have the same problem using RemoteWebDriver - I've worked around it by manually setting the proxy configuration on the FirefoxProfile object as follows -
String[] httpHostAndPort = proxy.getHttpProxy().split(":");
profile.setPreference("network.proxy.type", 1);
profile.setPreference("network.proxy.http", httpHostAndPort[0]);
profile.setPreference("network.proxy.http_port", Integer.parseInt(httpHostAndPort[1]));
String[] sslHostAndProxy = proxy.getSslProxy().split(":");
profile.setPreference("network.proxy.ssl", sslHostAndProxy[0]);
profile.setPreference("network.proxy.ssl_port", Integer.parseInt(sslHostAndProxy[1]));
Unlike @asolntsev's workaround, I've had to set the proxy type to manual, and the ports have to be integers to be overridden in about:config (although I'm not sure if that's just a side effect of using RemoteWebDriver).
I'm using the Docker container selenium/node-firefox-debug:3.4.0-einsteinium as the browser, and I'm using Java with selenium-java 3.4.0.
Any updates about this issues? any ETA?
I have the same issue too. I have the latest Firefox and geckodriver installed. Can someone please help?
Firefox: 54.0.1 Selenium: 3.4 Platform: win 7
ProfilesIni profile = new ProfilesIni();
FirefoxBinary binary = new FirefoxBinary(new File(Config.Path_Firefox));
FirefoxProfile myProfile = profile.getProfile("SeleniumExec");
DesiredCapabilities capabilities = new DesiredCapabilities(); capabilities.setCapability(CapabilityType.PROXY, seleniumProxy);
System.setProperty("webdriver.firefox.bin",Config.Path_Firefox);
System.setProperty("webdriver.gecko.driver", Config.Path_FIREFOXDriver);
Generic_Methods.driver = new FirefoxDriver(binary, myProfile,capabilities);
I get the following error
InvalidArgumentError: Expected [object Undefined] undefined to be an integer
Build info: version: 'unknown', revision: 'unknown', time: 'unknown'
System info: host: 'IBMT430PB2E84R', ip: '10.121.129.188', os.name: 'Windows 7', os.arch: 'x86', os.version: '6.1', java.version: '1.8.0_60'
Driver info: driver.version: Project_Master_Driver
remote stacktrace: stack backtrace:
0: 0x4bb74f -