Unable to launch firefox by using RemoteWebDriver+geckodriver+selenium 3

classic Classic list List threaded Threaded
19 messages Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Unable to launch firefox by using RemoteWebDriver+geckodriver+selenium 3

mahadi
Hello all,

I am using:
- selenium-server-standalone-3.0.0-beta4.jar
- geckodriver (v0.10.0)
- Firefox 49.0
- Mac - OSX EI Captain
- JRE 1.8

Code:

System.setProperty("webdriver.gecko.driver", "/Users/mahadihasan/Downloads/geckodriver");

DesiredCapabilities capabilities = DesiredCapabilities.firefox();

capabilities.setCapability("marionette", true);


WebDriver driver = new RemoteWebDriver(new URL("http://192.168.1.1:4444/wd/hub"), capabilities);

driver.get("http://google.com");


But the test failed launch Firefox browser:

Exception in thread "main" org.openqa.selenium.SessionNotCreatedException: Unable to create new remote session. desired capabilities = Capabilities [{marionette=true, browserName=firefox, version=, platform=ANY}], required capabilities = null

Build info: version: '3.0.0-beta4', revision: '3169782', time: '2016-09-29 10:30:04 -0700'

System info: host: 'Mahadi.local', ip: '192.168.1.9', os.name: 'Mac OS X', os.arch: 'x86_64', os.version: '10.11.6', java.version: '1.8.0_91'

Driver info: driver.version: RemoteWebDriver

at org.openqa.selenium.remote.ProtocolHandshake.createSession(ProtocolHandshake.java:80)
at org
.openqa.selenium.remote.HttpCommandExecutor.execute(HttpCommandExecutor.java:141)

at org.openqa.selenium.remote.RemoteWebDriver.execute(RemoteWebDriver.java:602)

at org.openqa.selenium.remote.RemoteWebDriver.startSession(RemoteWebDriver.java:242)

at org.openqa.selenium.remote.RemoteWebDriver.<init>(RemoteWebDriver.java:129)

at org.openqa.selenium.remote.RemoteWebDriver.<init>(RemoteWebDriver.java:156)



Selenium server log:
00:20:27.063 INFO - Executing: [new session: Capabilities [{marionette=true, browserName=firefox, version=, platform=ANY}]])
00:20:27.078 INFO - Creating a new session for Capabilities [{marionette=true, browserName=firefox, version=, platform=ANY}]
00:20:27.435 WARN - Exception thrown
java.util.concurrent.ExecutionException: org.openqa.selenium.WebDriverException: java.lang.reflect.InvocationTargetException
Build info: version: '3.0.0-beta4', revision: '3169782', time: '2016-09-29 10:29:23 -0700'
System info: host: 'Mahadi.local', ip: '192.168.1.9', os.name: 'Mac OS X', os.arch: 'x86_64', os.version: '10.11.6', java.version: '1.8.0_91'
Driver info: driver.version: unknown
        at java.util.concurrent.FutureTask.report(FutureTask.java:122)
        at java.util.concurrent.FutureTask.get(FutureTask.java:192)
.
.
.
       at java.lang.reflect.Constructor.newInstance(Constructor.java:423)
        at org.openqa.selenium.remote.server.FirefoxDriverProvider.callConstructor(FirefoxDriverProvider.java:86)
        ... 9 more
Caused by: java.lang.IllegalStateException: The path to the driver executable must be set by the webdriver.gecko.driver system property; for more information, see https://github.com/mozilla/geckodriver. The latest version can be downloaded from https://github.com/mozilla/geckodriver/releases


I was double checked geckodriver path, its there. Its a blocker for me now to proceed. It would be great if anyway can help whats going wrong. 

Thanks in advanced.

Best Regards,
Mahadi Hasan

--
You received this message because you are subscribed to the Google Groups "Selenium Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/selenium-users/b43c6e4c-45ce-460e-95e4-48513a11e5da%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Unable to launch firefox by using RemoteWebDriver+geckodriver+selenium 3

KY07
First of all, I think the url used in your remote driver is not the expected one. I think you should use the node's URL instead of the hub's one.
Second, I had the same issue described here while playing with grid and I solved it by passing the driver(s) info to the node's during its startup:
java -Dwebdriver.gecko.driver=MY_GECKO_ABSOLUTE_PATH -Dwebdriver.chrome.driver=MY_CHROME_ABSOLUTE_PATH -jar selenium-xyz.jar -role webdriver -hub MY_HUB_SERVER_IP:PORT/grid/register -port 5566 (or any other available port)

You'll then have to run it like this:
      DesiredCapabilities caps = DesiredCapabilities.firefox();//use your preferred browser
      caps.setBrowserName("firefox");//AGAIN, use the right browser name that you can get from the hub's config page
      caps.setPlatform(Platform.VISTA);//use the appropriate platform's name that you can get from the hub's config page
     
      this.driver = new RemoteWebDriver(new URL("http://192.168.1.50:5566/wd/hub"), caps);    //replace the url by your own node's url


Le samedi 1 octobre 2016 00:27:17 UTC+2, mahadi a écrit :
Hello all,

I am using:
- selenium-server-standalone-3.0.0-beta4.jar
- geckodriver (v0.10.0)
- Firefox 49.0
- Mac - OSX EI Captain
- JRE 1.8

Code:

System.setProperty("webdriver.gecko.driver", "/Users/mahadihasan/Downloads/geckodriver");

DesiredCapabilities capabilities = DesiredCapabilities.firefox();

capabilities.setCapability("marionette", true);


WebDriver driver = new RemoteWebDriver(new URL("<a href="http://192.168.1.1:4444/wd/hub" target="_blank" rel="nofollow" onmousedown="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2F192.168.1.1%3A4444%2Fwd%2Fhub\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNEYYTBGUCj1tM07mSQCHnVMOZPx9w&#39;;return true;" onclick="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2F192.168.1.1%3A4444%2Fwd%2Fhub\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNEYYTBGUCj1tM07mSQCHnVMOZPx9w&#39;;return true;">http://192.168.1.1:4444/wd/hub"), capabilities);

driver.get("<a href="http://google.com" target="_blank" rel="nofollow" onmousedown="this.href=&#39;http://google.com&#39;;return true;" onclick="this.href=&#39;http://google.com&#39;;return true;">http://google.com");


But the test failed launch Firefox browser:

Exception in thread "main" org.openqa.selenium.SessionNotCreatedException: Unable to create new remote session. desired capabilities = Capabilities [{marionette=true, browserName=firefox, version=, platform=ANY}], required capabilities = null

Build info: version: '3.0.0-beta4', revision: '3169782', time: '2016-09-29 10:30:04 -0700'

System info: host: 'Mahadi.local', ip: '192.168.1.9', os.name: 'Mac OS X', os.arch: 'x86_64', os.version: '10.11.6', java.version: '1.8.0_91'

Driver info: driver.version: RemoteWebDriver

at org.openqa.selenium.remote.ProtocolHandshake.createSession(ProtocolHandshake.java:80)
at org
.openqa.selenium.remote.HttpCommandExecutor.execute(HttpCommandExecutor.java:141)

at org.openqa.selenium.remote.RemoteWebDriver.execute(RemoteWebDriver.java:602)

at org.openqa.selenium.remote.RemoteWebDriver.startSession(RemoteWebDriver.java:242)

at org.openqa.selenium.remote.RemoteWebDriver.<init>(RemoteWebDriver.java:129)

at org.openqa.selenium.remote.RemoteWebDriver.<init>(RemoteWebDriver.java:156)



Selenium server log:
00:20:27.063 INFO - Executing: [new session: Capabilities [{marionette=true, browserName=firefox, version=, platform=ANY}]])
00:20:27.078 INFO - Creating a new session for Capabilities [{marionette=true, browserName=firefox, version=, platform=ANY}]
00:20:27.435 WARN - Exception thrown
java.util.concurrent.ExecutionException: org.openqa.selenium.WebDriverException: java.lang.reflect.InvocationTargetException
Build info: version: '3.0.0-beta4', revision: '3169782', time: '2016-09-29 10:29:23 -0700'
System info: host: 'Mahadi.local', ip: '192.168.1.9', <a href="http://os.name" target="_blank" rel="nofollow" onmousedown="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Fos.name\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNEBq5pahnbxzpNVLfaFeTDcQCtrYg&#39;;return true;" onclick="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Fos.name\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNEBq5pahnbxzpNVLfaFeTDcQCtrYg&#39;;return true;">os.name: 'Mac OS X', os.arch: 'x86_64', os.version: '10.11.6', java.version: '1.8.0_91'
Driver info: driver.version: unknown
        at java.util.concurrent.FutureTask.report(FutureTask.java:122)
        at java.util.concurrent.FutureTask.get(FutureTask.java:192)
.
.
.
       at java.lang.reflect.Constructor.newInstance(Constructor.java:423)
        at org.openqa.selenium.remote.server.FirefoxDriverProvider.callConstructor(FirefoxDriverProvider.java:86)
        ... 9 more
Caused by: java.lang.IllegalStateException: The path to the driver executable must be set by the webdriver.gecko.driver system property; for more information, see <a href="https://github.com/mozilla/geckodriver" target="_blank" rel="nofollow" onmousedown="this.href=&#39;https://www.google.com/url?q\x3dhttps%3A%2F%2Fgithub.com%2Fmozilla%2Fgeckodriver\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNGS-Jw-ENYGAGzH38eboe42n3xcXA&#39;;return true;" onclick="this.href=&#39;https://www.google.com/url?q\x3dhttps%3A%2F%2Fgithub.com%2Fmozilla%2Fgeckodriver\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNGS-Jw-ENYGAGzH38eboe42n3xcXA&#39;;return true;">https://github.com/mozilla/geckodriver. The latest version can be downloaded from <a href="https://github.com/mozilla/geckodriver/releases" target="_blank" rel="nofollow" onmousedown="this.href=&#39;https://www.google.com/url?q\x3dhttps%3A%2F%2Fgithub.com%2Fmozilla%2Fgeckodriver%2Freleases\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNFId2hfAooV5I0Sr5S20Swp5GRNug&#39;;return true;" onclick="this.href=&#39;https://www.google.com/url?q\x3dhttps%3A%2F%2Fgithub.com%2Fmozilla%2Fgeckodriver%2Freleases\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNFId2hfAooV5I0Sr5S20Swp5GRNug&#39;;return true;">https://github.com/mozilla/geckodriver/releases


I was double checked geckodriver path, its there. Its a blocker for me now to proceed. It would be great if anyway can help whats going wrong. 

Thanks in advanced.

Best Regards,
Mahadi Hasan

--
You received this message because you are subscribed to the Google Groups "Selenium Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/selenium-users/175d758f-0a2c-4c8a-bdd7-ac4b077c0bc7%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Unable to launch firefox by using RemoteWebDriver+geckodriver+selenium 3

mahadi
This helps me, thanks

On Sunday, October 2, 2016 at 7:00:01 PM UTC+2, KY07 wrote:
First of all, I think the url used in your remote driver is not the expected one. I think you should use the node's URL instead of the hub's one.
Second, I had the same issue described here while playing with grid and I solved it by passing the driver(s) info to the node's during its startup:
java -Dwebdriver.gecko.driver=MY_GECKO_ABSOLUTE_PATH -Dwebdriver.chrome.driver=MY_CHROME_ABSOLUTE_PATH -jar selenium-xyz.jar -role webdriver -hub MY_HUB_SERVER_IP:PORT/grid/register -port 5566 (or any other available port)

You'll then have to run it like this:
      DesiredCapabilities caps = DesiredCapabilities.firefox();//use your preferred browser
      caps.setBrowserName("firefox");//AGAIN, use the right browser name that you can get from the hub's config page
      caps.setPlatform(Platform.VISTA);//use the appropriate platform's name that you can get from the hub's config page
     
      this.driver = new RemoteWebDriver(new URL("<a href="http://192.168.1.50:5566/wd/hub" target="_blank" rel="nofollow" onmousedown="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2F192.168.1.50%3A5566%2Fwd%2Fhub\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNEl9YouaZkvLMvw-FjFbDuRfGJ1aw&#39;;return true;" onclick="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2F192.168.1.50%3A5566%2Fwd%2Fhub\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNEl9YouaZkvLMvw-FjFbDuRfGJ1aw&#39;;return true;">http://192.168.1.50:5566/wd/hub"), caps);    //replace the url by your own node's url


Le samedi 1 octobre 2016 00:27:17 UTC+2, mahadi a écrit :
Hello all,

I am using:
- selenium-server-standalone-3.0.0-beta4.jar
- geckodriver (v0.10.0)
- Firefox 49.0
- Mac - OSX EI Captain
- JRE 1.8

Code:

System.setProperty("webdriver.gecko.driver", "/Users/mahadihasan/Downloads/geckodriver");

DesiredCapabilities capabilities = DesiredCapabilities.firefox();

capabilities.setCapability("marionette", true);


WebDriver driver = new RemoteWebDriver(new URL("<a href="http://192.168.1.1:4444/wd/hub" rel="nofollow" target="_blank" onmousedown="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2F192.168.1.1%3A4444%2Fwd%2Fhub\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNEYYTBGUCj1tM07mSQCHnVMOZPx9w&#39;;return true;" onclick="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2F192.168.1.1%3A4444%2Fwd%2Fhub\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNEYYTBGUCj1tM07mSQCHnVMOZPx9w&#39;;return true;">http://192.168.1.1:4444/wd/hub"), capabilities);

driver.get("<a href="http://google.com" rel="nofollow" target="_blank" onmousedown="this.href=&#39;http://google.com&#39;;return true;" onclick="this.href=&#39;http://google.com&#39;;return true;">http://google.com");


But the test failed launch Firefox browser:

Exception in thread "main" org.openqa.selenium.SessionNotCreatedException: Unable to create new remote session. desired capabilities = Capabilities [{marionette=true, browserName=firefox, version=, platform=ANY}], required capabilities = null

Build info: version: '3.0.0-beta4', revision: '3169782', time: '2016-09-29 10:30:04 -0700'

System info: host: 'Mahadi.local', ip: '192.168.1.9', os.name: 'Mac OS X', os.arch: 'x86_64', os.version: '10.11.6', java.version: '1.8.0_91'

Driver info: driver.version: RemoteWebDriver

at org.openqa.selenium.remote.ProtocolHandshake.createSession(ProtocolHandshake.java:80)
at org
.openqa.selenium.remote.HttpCommandExecutor.execute(HttpCommandExecutor.java:141)

at org.openqa.selenium.remote.RemoteWebDriver.execute(RemoteWebDriver.java:602)

at org.openqa.selenium.remote.RemoteWebDriver.startSession(RemoteWebDriver.java:242)

at org.openqa.selenium.remote.RemoteWebDriver.<init>(RemoteWebDriver.java:129)

at org.openqa.selenium.remote.RemoteWebDriver.<init>(RemoteWebDriver.java:156)



Selenium server log:
00:20:27.063 INFO - Executing: [new session: Capabilities [{marionette=true, browserName=firefox, version=, platform=ANY}]])
00:20:27.078 INFO - Creating a new session for Capabilities [{marionette=true, browserName=firefox, version=, platform=ANY}]
00:20:27.435 WARN - Exception thrown
java.util.concurrent.ExecutionException: org.openqa.selenium.WebDriverException: java.lang.reflect.InvocationTargetException
Build info: version: '3.0.0-beta4', revision: '3169782', time: '2016-09-29 10:29:23 -0700'
System info: host: 'Mahadi.local', ip: '192.168.1.9', <a href="http://os.name" rel="nofollow" target="_blank" onmousedown="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Fos.name\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNEBq5pahnbxzpNVLfaFeTDcQCtrYg&#39;;return true;" onclick="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Fos.name\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNEBq5pahnbxzpNVLfaFeTDcQCtrYg&#39;;return true;">os.name: 'Mac OS X', os.arch: 'x86_64', os.version: '10.11.6', java.version: '1.8.0_91'
Driver info: driver.version: unknown
        at java.util.concurrent.FutureTask.report(FutureTask.java:122)
        at java.util.concurrent.FutureTask.get(FutureTask.java:192)
.
.
.
       at java.lang.reflect.Constructor.newInstance(Constructor.java:423)
        at org.openqa.selenium.remote.server.FirefoxDriverProvider.callConstructor(FirefoxDriverProvider.java:86)
        ... 9 more
Caused by: java.lang.IllegalStateException: The path to the driver executable must be set by the webdriver.gecko.driver system property; for more information, see <a href="https://github.com/mozilla/geckodriver" rel="nofollow" target="_blank" onmousedown="this.href=&#39;https://www.google.com/url?q\x3dhttps%3A%2F%2Fgithub.com%2Fmozilla%2Fgeckodriver\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNGS-Jw-ENYGAGzH38eboe42n3xcXA&#39;;return true;" onclick="this.href=&#39;https://www.google.com/url?q\x3dhttps%3A%2F%2Fgithub.com%2Fmozilla%2Fgeckodriver\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNGS-Jw-ENYGAGzH38eboe42n3xcXA&#39;;return true;">https://github.com/mozilla/geckodriver. The latest version can be downloaded from <a href="https://github.com/mozilla/geckodriver/releases" rel="nofollow" target="_blank" onmousedown="this.href=&#39;https://www.google.com/url?q\x3dhttps%3A%2F%2Fgithub.com%2Fmozilla%2Fgeckodriver%2Freleases\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNFId2hfAooV5I0Sr5S20Swp5GRNug&#39;;return true;" onclick="this.href=&#39;https://www.google.com/url?q\x3dhttps%3A%2F%2Fgithub.com%2Fmozilla%2Fgeckodriver%2Freleases\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNFId2hfAooV5I0Sr5S20Swp5GRNug&#39;;return true;">https://github.com/mozilla/geckodriver/releases


I was double checked geckodriver path, its there. Its a blocker for me now to proceed. It would be great if anyway can help whats going wrong. 

Thanks in advanced.

Best Regards,
Mahadi Hasan

--
You received this message because you are subscribed to the Google Groups "Selenium Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/selenium-users/9f4c0d6e-5820-42a5-8b1f-b5e88bfb1350%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Unable to launch firefox by using RemoteWebDriver+geckodriver+selenium 3

rajasekaran rj
Hi Mahadi,

I am also facing the same problem. Tried to resolve hardly but no luck. Can you please elloboarate how you resolved it. Thanks.

Regards,
Rajasekaran



On Monday, October 3, 2016 at 8:39:25 PM UTC+5:30, mahadi wrote:
This helps me, thanks

On Sunday, October 2, 2016 at 7:00:01 PM UTC+2, KY07 wrote:
First of all, I think the url used in your remote driver is not the expected one. I think you should use the node's URL instead of the hub's one.
Second, I had the same issue described here while playing with grid and I solved it by passing the driver(s) info to the node's during its startup:
java -Dwebdriver.gecko.driver=MY_GECKO_ABSOLUTE_PATH -Dwebdriver.chrome.driver=MY_CHROME_ABSOLUTE_PATH -jar selenium-xyz.jar -role webdriver -hub MY_HUB_SERVER_IP:PORT/grid/register -port 5566 (or any other available port)

You'll then have to run it like this:
      DesiredCapabilities caps = DesiredCapabilities.firefox();//use your preferred browser
      caps.setBrowserName("firefox");//AGAIN, use the right browser name that you can get from the hub's config page
      caps.setPlatform(Platform.VISTA);//use the appropriate platform's name that you can get from the hub's config page
     
      this.driver = new RemoteWebDriver(new URL("<a href="http://192.168.1.50:5566/wd/hub" rel="nofollow" target="_blank" onmousedown="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2F192.168.1.50%3A5566%2Fwd%2Fhub\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNEl9YouaZkvLMvw-FjFbDuRfGJ1aw&#39;;return true;" onclick="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2F192.168.1.50%3A5566%2Fwd%2Fhub\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNEl9YouaZkvLMvw-FjFbDuRfGJ1aw&#39;;return true;">http://192.168.1.50:5566/wd/hub"), caps);    //replace the url by your own node's url


Le samedi 1 octobre 2016 00:27:17 UTC+2, mahadi a écrit :
Hello all,

I am using:
- selenium-server-standalone-3.0.0-beta4.jar
- geckodriver (v0.10.0)
- Firefox 49.0
- Mac - OSX EI Captain
- JRE 1.8

Code:

System.setProperty("webdriver.gecko.driver", "/Users/mahadihasan/Downloads/geckodriver");

DesiredCapabilities capabilities = DesiredCapabilities.firefox();

capabilities.setCapability("marionette", true);


WebDriver driver = new RemoteWebDriver(new URL("<a href="http://192.168.1.1:4444/wd/hub" rel="nofollow" target="_blank" onmousedown="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2F192.168.1.1%3A4444%2Fwd%2Fhub\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNEYYTBGUCj1tM07mSQCHnVMOZPx9w&#39;;return true;" onclick="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2F192.168.1.1%3A4444%2Fwd%2Fhub\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNEYYTBGUCj1tM07mSQCHnVMOZPx9w&#39;;return true;">http://192.168.1.1:4444/wd/hub"), capabilities);

driver.get("<a href="http://google.com" rel="nofollow" target="_blank" onmousedown="this.href=&#39;http://google.com&#39;;return true;" onclick="this.href=&#39;http://google.com&#39;;return true;">http://google.com");


But the test failed launch Firefox browser:

Exception in thread "main" org.openqa.selenium.SessionNotCreatedException: Unable to create new remote session. desired capabilities = Capabilities [{marionette=true, browserName=firefox, version=, platform=ANY}], required capabilities = null

Build info: version: '3.0.0-beta4', revision: '3169782', time: '2016-09-29 10:30:04 -0700'

System info: host: 'Mahadi.local', ip: '192.168.1.9', os.name: 'Mac OS X', os.arch: 'x86_64', os.version: '10.11.6', java.version: '1.8.0_91'

Driver info: driver.version: RemoteWebDriver

at org.openqa.selenium.remote.ProtocolHandshake.createSession(ProtocolHandshake.java:80)
at org
.openqa.selenium.remote.HttpCommandExecutor.execute(HttpCommandExecutor.java:141)

at org.openqa.selenium.remote.RemoteWebDriver.execute(RemoteWebDriver.java:602)

at org.openqa.selenium.remote.RemoteWebDriver.startSession(RemoteWebDriver.java:242)

at org.openqa.selenium.remote.RemoteWebDriver.<init>(RemoteWebDriver.java:129)

at org.openqa.selenium.remote.RemoteWebDriver.<init>(RemoteWebDriver.java:156)



Selenium server log:
00:20:27.063 INFO - Executing: [new session: Capabilities [{marionette=true, browserName=firefox, version=, platform=ANY}]])
00:20:27.078 INFO - Creating a new session for Capabilities [{marionette=true, browserName=firefox, version=, platform=ANY}]
00:20:27.435 WARN - Exception thrown
java.util.concurrent.ExecutionException: org.openqa.selenium.WebDriverException: java.lang.reflect.InvocationTargetException
Build info: version: '3.0.0-beta4', revision: '3169782', time: '2016-09-29 10:29:23 -0700'
System info: host: 'Mahadi.local', ip: '192.168.1.9', <a href="http://os.name" rel="nofollow" target="_blank" onmousedown="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Fos.name\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNEBq5pahnbxzpNVLfaFeTDcQCtrYg&#39;;return true;" onclick="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Fos.name\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNEBq5pahnbxzpNVLfaFeTDcQCtrYg&#39;;return true;">os.name: 'Mac OS X', os.arch: 'x86_64', os.version: '10.11.6', java.version: '1.8.0_91'
Driver info: driver.version: unknown
        at java.util.concurrent.FutureTask.report(FutureTask.java:122)
        at java.util.concurrent.FutureTask.get(FutureTask.java:192)
.
.
.
       at java.lang.reflect.Constructor.newInstance(Constructor.java:423)
        at org.openqa.selenium.remote.server.FirefoxDriverProvider.callConstructor(FirefoxDriverProvider.java:86)
        ... 9 more
Caused by: java.lang.IllegalStateException: The path to the driver executable must be set by the webdriver.gecko.driver system property; for more information, see <a href="https://github.com/mozilla/geckodriver" rel="nofollow" target="_blank" onmousedown="this.href=&#39;https://www.google.com/url?q\x3dhttps%3A%2F%2Fgithub.com%2Fmozilla%2Fgeckodriver\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNGS-Jw-ENYGAGzH38eboe42n3xcXA&#39;;return true;" onclick="this.href=&#39;https://www.google.com/url?q\x3dhttps%3A%2F%2Fgithub.com%2Fmozilla%2Fgeckodriver\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNGS-Jw-ENYGAGzH38eboe42n3xcXA&#39;;return true;">https://github.com/mozilla/geckodriver. The latest version can be downloaded from <a href="https://github.com/mozilla/geckodriver/releases" rel="nofollow" target="_blank" onmousedown="this.href=&#39;https://www.google.com/url?q\x3dhttps%3A%2F%2Fgithub.com%2Fmozilla%2Fgeckodriver%2Freleases\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNFId2hfAooV5I0Sr5S20Swp5GRNug&#39;;return true;" onclick="this.href=&#39;https://www.google.com/url?q\x3dhttps%3A%2F%2Fgithub.com%2Fmozilla%2Fgeckodriver%2Freleases\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNFId2hfAooV5I0Sr5S20Swp5GRNug&#39;;return true;">https://github.com/mozilla/geckodriver/releases


I was double checked geckodriver path, its there. Its a blocker for me now to proceed. It would be great if anyway can help whats going wrong. 

Thanks in advanced.

Best Regards,
Mahadi Hasan

--
You received this message because you are subscribed to the Google Groups "Selenium Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/selenium-users/c94e927b-22a3-49c2-ace8-434e966b00be%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Unable to launch firefox by using RemoteWebDriver+geckodriver+selenium 3

mahadi
It works for me simply start the server by specifying the gecko driver path:

example: 

java -Dwebdriver.gecko.driver=MY_GECKO_ABSOLUTE_PATH -jar selenium-xyz.jar


On Thursday, October 13, 2016 at 4:45:01 AM UTC+2, rajasekaran rj wrote:
Hi Mahadi,

I am also facing the same problem. Tried to resolve hardly but no luck. Can you please elloboarate how you resolved it. Thanks.

Regards,
Rajasekaran



On Monday, October 3, 2016 at 8:39:25 PM UTC+5:30, mahadi wrote:
This helps me, thanks

On Sunday, October 2, 2016 at 7:00:01 PM UTC+2, KY07 wrote:
First of all, I think the url used in your remote driver is not the expected one. I think you should use the node's URL instead of the hub's one.
Second, I had the same issue described here while playing with grid and I solved it by passing the driver(s) info to the node's during its startup:
java -Dwebdriver.gecko.driver=MY_GECKO_ABSOLUTE_PATH -Dwebdriver.chrome.driver=MY_CHROME_ABSOLUTE_PATH -jar selenium-xyz.jar -role webdriver -hub MY_HUB_SERVER_IP:PORT/grid/register -port 5566 (or any other available port)

You'll then have to run it like this:
      DesiredCapabilities caps = DesiredCapabilities.firefox();//use your preferred browser
      caps.setBrowserName("firefox");//AGAIN, use the right browser name that you can get from the hub's config page
      caps.setPlatform(Platform.VISTA);//use the appropriate platform's name that you can get from the hub's config page
     
      this.driver = new RemoteWebDriver(new URL("<a href="http://192.168.1.50:5566/wd/hub" rel="nofollow" target="_blank" onmousedown="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2F192.168.1.50%3A5566%2Fwd%2Fhub\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNEl9YouaZkvLMvw-FjFbDuRfGJ1aw&#39;;return true;" onclick="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2F192.168.1.50%3A5566%2Fwd%2Fhub\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNEl9YouaZkvLMvw-FjFbDuRfGJ1aw&#39;;return true;">http://192.168.1.50:5566/wd/hub"), caps);    //replace the url by your own node's url


Le samedi 1 octobre 2016 00:27:17 UTC+2, mahadi a écrit :
Hello all,

I am using:
- selenium-server-standalone-3.0.0-beta4.jar
- geckodriver (v0.10.0)
- Firefox 49.0
- Mac - OSX EI Captain
- JRE 1.8

Code:

System.setProperty("webdriver.gecko.driver", "/Users/mahadihasan/Downloads/geckodriver");

DesiredCapabilities capabilities = DesiredCapabilities.firefox();

capabilities.setCapability("marionette", true);


WebDriver driver = new RemoteWebDriver(new URL("<a href="http://192.168.1.1:4444/wd/hub" rel="nofollow" target="_blank" onmousedown="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2F192.168.1.1%3A4444%2Fwd%2Fhub\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNEYYTBGUCj1tM07mSQCHnVMOZPx9w&#39;;return true;" onclick="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2F192.168.1.1%3A4444%2Fwd%2Fhub\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNEYYTBGUCj1tM07mSQCHnVMOZPx9w&#39;;return true;">http://192.168.1.1:4444/wd/hub"), capabilities);

driver.get("<a href="http://google.com" rel="nofollow" target="_blank" onmousedown="this.href=&#39;http://google.com&#39;;return true;" onclick="this.href=&#39;http://google.com&#39;;return true;">http://google.com");


But the test failed launch Firefox browser:

Exception in thread "main" org.openqa.selenium.SessionNotCreatedException: Unable to create new remote session. desired capabilities = Capabilities [{marionette=true, browserName=firefox, version=, platform=ANY}], required capabilities = null

Build info: version: '3.0.0-beta4', revision: '3169782', time: '2016-09-29 10:30:04 -0700'

System info: host: 'Mahadi.local', ip: '192.168.1.9', os.name: 'Mac OS X', os.arch: 'x86_64', os.version: '10.11.6', java.version: '1.8.0_91'

Driver info: driver.version: RemoteWebDriver

at org.openqa.selenium.remote.ProtocolHandshake.createSession(ProtocolHandshake.java:80)
at org
.openqa.selenium.remote.HttpCommandExecutor.execute(HttpCommandExecutor.java:141)

at org.openqa.selenium.remote.RemoteWebDriver.execute(RemoteWebDriver.java:602)

at org.openqa.selenium.remote.RemoteWebDriver.startSession(RemoteWebDriver.java:242)

at org.openqa.selenium.remote.RemoteWebDriver.<init>(RemoteWebDriver.java:129)

at org.openqa.selenium.remote.RemoteWebDriver.<init>(RemoteWebDriver.java:156)



Selenium server log:
00:20:27.063 INFO - Executing: [new session: Capabilities [{marionette=true, browserName=firefox, version=, platform=ANY}]])
00:20:27.078 INFO - Creating a new session for Capabilities [{marionette=true, browserName=firefox, version=, platform=ANY}]
00:20:27.435 WARN - Exception thrown
java.util.concurrent.ExecutionException: org.openqa.selenium.WebDriverException: java.lang.reflect.InvocationTargetException
Build info: version: '3.0.0-beta4', revision: '3169782', time: '2016-09-29 10:29:23 -0700'
System info: host: 'Mahadi.local', ip: '192.168.1.9', <a href="http://os.name" rel="nofollow" target="_blank" onmousedown="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Fos.name\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNEBq5pahnbxzpNVLfaFeTDcQCtrYg&#39;;return true;" onclick="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Fos.name\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNEBq5pahnbxzpNVLfaFeTDcQCtrYg&#39;;return true;">os.name: 'Mac OS X', os.arch: 'x86_64', os.version: '10.11.6', java.version: '1.8.0_91'
Driver info: driver.version: unknown
        at java.util.concurrent.FutureTask.report(FutureTask.java:122)
        at java.util.concurrent.FutureTask.get(FutureTask.java:192)
.
.
.
       at java.lang.reflect.Constructor.newInstance(Constructor.java:423)
        at org.openqa.selenium.remote.server.FirefoxDriverProvider.callConstructor(FirefoxDriverProvider.java:86)
        ... 9 more
Caused by: java.lang.IllegalStateException: The path to the driver executable must be set by the webdriver.gecko.driver system property; for more information, see <a href="https://github.com/mozilla/geckodriver" rel="nofollow" target="_blank" onmousedown="this.href=&#39;https://www.google.com/url?q\x3dhttps%3A%2F%2Fgithub.com%2Fmozilla%2Fgeckodriver\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNGS-Jw-ENYGAGzH38eboe42n3xcXA&#39;;return true;" onclick="this.href=&#39;https://www.google.com/url?q\x3dhttps%3A%2F%2Fgithub.com%2Fmozilla%2Fgeckodriver\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNGS-Jw-ENYGAGzH38eboe42n3xcXA&#39;;return true;">https://github.com/mozilla/geckodriver. The latest version can be downloaded from <a href="https://github.com/mozilla/geckodriver/releases" rel="nofollow" target="_blank" onmousedown="this.href=&#39;https://www.google.com/url?q\x3dhttps%3A%2F%2Fgithub.com%2Fmozilla%2Fgeckodriver%2Freleases\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNFId2hfAooV5I0Sr5S20Swp5GRNug&#39;;return true;" onclick="this.href=&#39;https://www.google.com/url?q\x3dhttps%3A%2F%2Fgithub.com%2Fmozilla%2Fgeckodriver%2Freleases\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNFId2hfAooV5I0Sr5S20Swp5GRNug&#39;;return true;">https://github.com/mozilla/geckodriver/releases


I was double checked geckodriver path, its there. Its a blocker for me now to proceed. It would be great if anyway can help whats going wrong. 

Thanks in advanced.

Best Regards,
Mahadi Hasan

--
You received this message because you are subscribed to the Google Groups "Selenium Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/selenium-users/807509ac-e8e3-4209-93c6-88dda389036c%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Unable to launch firefox by using RemoteWebDriver+geckodriver+selenium 3

rajasekaran rj


On Thursday, October 13, 2016 at 5:52:47 PM UTC+5:30, mahadi wrote:
It works for me simply start the server by specifying the gecko driver path:

example: 

java -Dwebdriver.gecko.driver=MY_GECKO_ABSOLUTE_PATH -jar selenium-xyz.jar


On Thursday, October 13, 2016 at 4:45:01 AM UTC+2, rajasekaran rj wrote:
Hi Mahadi,

I am also facing the same problem. Tried to resolve hardly but no luck. Can you please elloboarate how you resolved it. Thanks.

Regards,
Rajasekaran

Hi Mahadi,

Could you please share your updated code to start the Remote firefox browser.

Thanks,
Rajasekaran


On Monday, October 3, 2016 at 8:39:25 PM UTC+5:30, mahadi wrote:
This helps me, thanks

On Sunday, October 2, 2016 at 7:00:01 PM UTC+2, KY07 wrote:
First of all, I think the url used in your remote driver is not the expected one. I think you should use the node's URL instead of the hub's one.
Second, I had the same issue described here while playing with grid and I solved it by passing the driver(s) info to the node's during its startup:
java -Dwebdriver.gecko.driver=MY_GECKO_ABSOLUTE_PATH -Dwebdriver.chrome.driver=MY_CHROME_ABSOLUTE_PATH -jar selenium-xyz.jar -role webdriver -hub MY_HUB_SERVER_IP:PORT/grid/register -port 5566 (or any other available port)

You'll then have to run it like this:
      DesiredCapabilities caps = DesiredCapabilities.firefox();//use your preferred browser
      caps.setBrowserName("firefox");//AGAIN, use the right browser name that you can get from the hub's config page
      caps.setPlatform(Platform.VISTA);//use the appropriate platform's name that you can get from the hub's config page
     
      this.driver = new RemoteWebDriver(new URL("<a href="http://192.168.1.50:5566/wd/hub" rel="nofollow" target="_blank" onmousedown="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2F192.168.1.50%3A5566%2Fwd%2Fhub\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNEl9YouaZkvLMvw-FjFbDuRfGJ1aw&#39;;return true;" onclick="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2F192.168.1.50%3A5566%2Fwd%2Fhub\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNEl9YouaZkvLMvw-FjFbDuRfGJ1aw&#39;;return true;">http://192.168.1.50:5566/wd/hub"), caps);    //replace the url by your own node's url


Le samedi 1 octobre 2016 00:27:17 UTC+2, mahadi a écrit :
Hello all,

I am using:
- selenium-server-standalone-3.0.0-beta4.jar
- geckodriver (v0.10.0)
- Firefox 49.0
- Mac - OSX EI Captain
- JRE 1.8

Code:

System.setProperty("webdriver.gecko.driver", "/Users/mahadihasan/Downloads/geckodriver");

DesiredCapabilities capabilities = DesiredCapabilities.firefox();

capabilities.setCapability("marionette", true);


WebDriver driver = new RemoteWebDriver(new URL("<a href="http://192.168.1.1:4444/wd/hub" rel="nofollow" target="_blank" onmousedown="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2F192.168.1.1%3A4444%2Fwd%2Fhub\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNEYYTBGUCj1tM07mSQCHnVMOZPx9w&#39;;return true;" onclick="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2F192.168.1.1%3A4444%2Fwd%2Fhub\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNEYYTBGUCj1tM07mSQCHnVMOZPx9w&#39;;return true;">http://192.168.1.1:4444/wd/hub"), capabilities);

driver.get("<a href="http://google.com" rel="nofollow" target="_blank" onmousedown="this.href=&#39;http://google.com&#39;;return true;" onclick="this.href=&#39;http://google.com&#39;;return true;">http://google.com");


But the test failed launch Firefox browser:

Exception in thread "main" org.openqa.selenium.SessionNotCreatedException: Unable to create new remote session. desired capabilities = Capabilities [{marionette=true, browserName=firefox, version=, platform=ANY}], required capabilities = null

Build info: version: '3.0.0-beta4', revision: '3169782', time: '2016-09-29 10:30:04 -0700'

System info: host: 'Mahadi.local', ip: '192.168.1.9', os.name: 'Mac OS X', os.arch: 'x86_64', os.version: '10.11.6', java.version: '1.8.0_91'

Driver info: driver.version: RemoteWebDriver

at org.openqa.selenium.remote.ProtocolHandshake.createSession(ProtocolHandshake.java:80)
at org
.openqa.selenium.remote.HttpCommandExecutor.execute(HttpCommandExecutor.java:141)

at org.openqa.selenium.remote.RemoteWebDriver.execute(RemoteWebDriver.java:602)

at org.openqa.selenium.remote.RemoteWebDriver.startSession(RemoteWebDriver.java:242)

at org.openqa.selenium.remote.RemoteWebDriver.<init>(RemoteWebDriver.java:129)

at org.openqa.selenium.remote.RemoteWebDriver.<init>(RemoteWebDriver.java:156)



Selenium server log:
00:20:27.063 INFO - Executing: [new session: Capabilities [{marionette=true, browserName=firefox, version=, platform=ANY}]])
00:20:27.078 INFO - Creating a new session for Capabilities [{marionette=true, browserName=firefox, version=, platform=ANY}]
00:20:27.435 WARN - Exception thrown
java.util.concurrent.ExecutionException: org.openqa.selenium.WebDriverException: java.lang.reflect.InvocationTargetException
Build info: version: '3.0.0-beta4', revision: '3169782', time: '2016-09-29 10:29:23 -0700'
System info: host: 'Mahadi.local', ip: '192.168.1.9', <a href="http://os.name" rel="nofollow" target="_blank" onmousedown="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Fos.name\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNEBq5pahnbxzpNVLfaFeTDcQCtrYg&#39;;return true;" onclick="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Fos.name\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNEBq5pahnbxzpNVLfaFeTDcQCtrYg&#39;;return true;">os.name: 'Mac OS X', os.arch: 'x86_64', os.version: '10.11.6', java.version: '1.8.0_91'
Driver info: driver.version: unknown
        at java.util.concurrent.FutureTask.report(FutureTask.java:122)
        at java.util.concurrent.FutureTask.get(FutureTask.java:192)
.
.
.
       at java.lang.reflect.Constructor.newInstance(Constructor.java:423)
        at org.openqa.selenium.remote.server.FirefoxDriverProvider.callConstructor(FirefoxDriverProvider.java:86)
        ... 9 more
Caused by: java.lang.IllegalStateException: The path to the driver executable must be set by the webdriver.gecko.driver system property; for more information, see <a href="https://github.com/mozilla/geckodriver" rel="nofollow" target="_blank" onmousedown="this.href=&#39;https://www.google.com/url?q\x3dhttps%3A%2F%2Fgithub.com%2Fmozilla%2Fgeckodriver\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNGS-Jw-ENYGAGzH38eboe42n3xcXA&#39;;return true;" onclick="this.href=&#39;https://www.google.com/url?q\x3dhttps%3A%2F%2Fgithub.com%2Fmozilla%2Fgeckodriver\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNGS-Jw-ENYGAGzH38eboe42n3xcXA&#39;;return true;">https://github.com/mozilla/geckodriver. The latest version can be downloaded from <a href="https://github.com/mozilla/geckodriver/releases" rel="nofollow" target="_blank" onmousedown="this.href=&#39;https://www.google.com/url?q\x3dhttps%3A%2F%2Fgithub.com%2Fmozilla%2Fgeckodriver%2Freleases\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNFId2hfAooV5I0Sr5S20Swp5GRNug&#39;;return true;" onclick="this.href=&#39;https://www.google.com/url?q\x3dhttps%3A%2F%2Fgithub.com%2Fmozilla%2Fgeckodriver%2Freleases\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNFId2hfAooV5I0Sr5S20Swp5GRNug&#39;;return true;">https://github.com/mozilla/geckodriver/releases


I was double checked geckodriver path, its there. Its a blocker for me now to proceed. It would be great if anyway can help whats going wrong. 

Thanks in advanced.

Best Regards,
Mahadi Hasan

--
You received this message because you are subscribed to the Google Groups "Selenium Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/selenium-users/0967fbe0-fda8-483f-82c1-b2469c16310e%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Unable to launch firefox by using RemoteWebDriver+geckodriver+selenium 3

Ramesh P-2
Hi,

I am unable to bypass the SSL Certification using GECKODriver. Kindly Help
FF-58
Selenium standalone server 3.0.1
Geckodriver 0.11


Regards,
Ramesh

On Monday, 17 October 2016 12:05:52 UTC+5:30, rajasekaran rj wrote:


On Thursday, October 13, 2016 at 5:52:47 PM UTC+5:30, mahadi wrote:
It works for me simply start the server by specifying the gecko driver path:

example: 

java -Dwebdriver.gecko.driver=MY_GECKO_ABSOLUTE_PATH -jar selenium-xyz.jar


On Thursday, October 13, 2016 at 4:45:01 AM UTC+2, rajasekaran rj wrote:
Hi Mahadi,

I am also facing the same problem. Tried to resolve hardly but no luck. Can you please elloboarate how you resolved it. Thanks.

Regards,
Rajasekaran

Hi Mahadi,

Could you please share your updated code to start the Remote firefox browser.

Thanks,
Rajasekaran


On Monday, October 3, 2016 at 8:39:25 PM UTC+5:30, mahadi wrote:
This helps me, thanks

On Sunday, October 2, 2016 at 7:00:01 PM UTC+2, KY07 wrote:
First of all, I think the url used in your remote driver is not the expected one. I think you should use the node's URL instead of the hub's one.
Second, I had the same issue described here while playing with grid and I solved it by passing the driver(s) info to the node's during its startup:
java -Dwebdriver.gecko.driver=MY_GECKO_ABSOLUTE_PATH -Dwebdriver.chrome.driver=MY_CHROME_ABSOLUTE_PATH -jar selenium-xyz.jar -role webdriver -hub MY_HUB_SERVER_IP:PORT/grid/register -port 5566 (or any other available port)

You'll then have to run it like this:
      DesiredCapabilities caps = DesiredCapabilities.firefox();//use your preferred browser
      caps.setBrowserName("firefox");//AGAIN, use the right browser name that you can get from the hub's config page
      caps.setPlatform(Platform.VISTA);//use the appropriate platform's name that you can get from the hub's config page
     
      this.driver = new RemoteWebDriver(new URL("<a href="http://192.168.1.50:5566/wd/hub" rel="nofollow" target="_blank" onmousedown="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2F192.168.1.50%3A5566%2Fwd%2Fhub\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNEl9YouaZkvLMvw-FjFbDuRfGJ1aw&#39;;return true;" onclick="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2F192.168.1.50%3A5566%2Fwd%2Fhub\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNEl9YouaZkvLMvw-FjFbDuRfGJ1aw&#39;;return true;">http://192.168.1.50:5566/wd/hub"), caps);    //replace the url by your own node's url


Le samedi 1 octobre 2016 00:27:17 UTC+2, mahadi a écrit :
Hello all,

I am using:
- selenium-server-standalone-3.0.0-beta4.jar
- geckodriver (v0.10.0)
- Firefox 49.0
- Mac - OSX EI Captain
- JRE 1.8

Code:

System.setProperty("webdriver.gecko.driver", "/Users/mahadihasan/Downloads/geckodriver");

DesiredCapabilities capabilities = DesiredCapabilities.firefox();

capabilities.setCapability("marionette", true);


WebDriver driver = new RemoteWebDriver(new URL("<a href="http://192.168.1.1:4444/wd/hub" rel="nofollow" target="_blank" onmousedown="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2F192.168.1.1%3A4444%2Fwd%2Fhub\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNEYYTBGUCj1tM07mSQCHnVMOZPx9w&#39;;return true;" onclick="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2F192.168.1.1%3A4444%2Fwd%2Fhub\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNEYYTBGUCj1tM07mSQCHnVMOZPx9w&#39;;return true;">http://192.168.1.1:4444/wd/hub"), capabilities);

driver.get("<a href="http://google.com" rel="nofollow" target="_blank" onmousedown="this.href=&#39;http://google.com&#39;;return true;" onclick="this.href=&#39;http://google.com&#39;;return true;">http://google.com");


But the test failed launch Firefox browser:

Exception in thread "main" org.openqa.selenium.SessionNotCreatedException: Unable to create new remote session. desired capabilities = Capabilities [{marionette=true, browserName=firefox, version=, platform=ANY}], required capabilities = null

Build info: version: '3.0.0-beta4', revision: '3169782', time: '2016-09-29 10:30:04 -0700'

System info: host: 'Mahadi.local', ip: '192.168.1.9', os.name: 'Mac OS X', os.arch: 'x86_64', os.version: '10.11.6', java.version: '1.8.0_91'

Driver info: driver.version: RemoteWebDriver

at org.openqa.selenium.remote.ProtocolHandshake.createSession(ProtocolHandshake.java:80)
at org
.openqa.selenium.remote.HttpCommandExecutor.execute(HttpCommandExecutor.java:141)

at org.openqa.selenium.remote.RemoteWebDriver.execute(RemoteWebDriver.java:602)

at org.openqa.selenium.remote.RemoteWebDriver.startSession(RemoteWebDriver.java:242)

at org.openqa.selenium.remote.RemoteWebDriver.<init>(RemoteWebDriver.java:129)

at org.openqa.selenium.remote.RemoteWebDriver.<init>(RemoteWebDriver.java:156)



Selenium server log:
00:20:27.063 INFO - Executing: [new session: Capabilities [{marionette=true, browserName=firefox, version=, platform=ANY}]])
00:20:27.078 INFO - Creating a new session for Capabilities [{marionette=true, browserName=firefox, version=, platform=ANY}]
00:20:27.435 WARN - Exception thrown
java.util.concurrent.ExecutionException: org.openqa.selenium.WebDriverException: java.lang.reflect.InvocationTargetException
Build info: version: '3.0.0-beta4', revision: '3169782', time: '2016-09-29 10:29:23 -0700'
System info: host: 'Mahadi.local', ip: '192.168.1.9', <a href="http://os.name" rel="nofollow" target="_blank" onmousedown="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Fos.name\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNEBq5pahnbxzpNVLfaFeTDcQCtrYg&#39;;return true;" onclick="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Fos.name\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNEBq5pahnbxzpNVLfaFeTDcQCtrYg&#39;;return true;">os.name: 'Mac OS X', os.arch: 'x86_64', os.version: '10.11.6', java.version: '1.8.0_91'
Driver info: driver.version: unknown
        at java.util.concurrent.FutureTask.report(FutureTask.java:122)
        at java.util.concurrent.FutureTask.get(FutureTask.java:192)
.
.
.
       at java.lang.reflect.Constructor.newInstance(Constructor.java:423)
        at org.openqa.selenium.remote.server.FirefoxDriverProvider.callConstructor(FirefoxDriverProvider.java:86)
        ... 9 more
Caused by: java.lang.IllegalStateException: The path to the driver executable must be set by the webdriver.gecko.driver system property; for more information, see <a href="https://github.com/mozilla/geckodriver" rel="nofollow" target="_blank" onmousedown="this.href=&#39;https://www.google.com/url?q\x3dhttps%3A%2F%2Fgithub.com%2Fmozilla%2Fgeckodriver\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNGS-Jw-ENYGAGzH38eboe42n3xcXA&#39;;return true;" onclick="this.href=&#39;https://www.google.com/url?q\x3dhttps%3A%2F%2Fgithub.com%2Fmozilla%2Fgeckodriver\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNGS-Jw-ENYGAGzH38eboe42n3xcXA&#39;;return true;">https://github.com/mozilla/geckodriver. The latest version can be downloaded from <a href="https://github.com/mozilla/geckodriver/releases" rel="nofollow" target="_blank" onmousedown="this.href=&#39;https://www.google.com/url?q\x3dhttps%3A%2F%2Fgithub.com%2Fmozilla%2Fgeckodriver%2Freleases\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNFId2hfAooV5I0Sr5S20Swp5GRNug&#39;;return true;" onclick="this.href=&#39;https://www.google.com/url?q\x3dhttps%3A%2F%2Fgithub.com%2Fmozilla%2Fgeckodriver%2Freleases\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNFId2hfAooV5I0Sr5S20Swp5GRNug&#39;;return true;">https://github.com/mozilla/geckodriver/releases


I was double checked geckodriver path, its there. Its a blocker for me now to proceed. It would be great if anyway can help whats going wrong. 

Thanks in advanced.

Best Regards,
Mahadi Hasan

--
You received this message because you are subscribed to the Google Groups "Selenium Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/selenium-users/68ccc4fd-f29e-488a-8de7-019b978274f6%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Unable to launch firefox by using RemoteWebDriver+geckodriver+selenium 3

Deepa Padmanabhan
In reply to this post by mahadi

I am using:
- selenium-server-standalone-3.0.1.jar
- geckodriver (v0.11.0)
- Firefox 42.0
- Mac - OSX EI Captain
- JRE 1.8

I also set gecko driver while starting up the server and still face this issue

On Friday, September 30, 2016 at 3:27:17 PM UTC-7, mahadi wrote:
Hello all,

I am using:
- selenium-server-standalone-3.0.0-beta4.jar
- geckodriver (v0.10.0)
- Firefox 49.0
- Mac - OSX EI Captain
- JRE 1.8

Code:

System.setProperty("webdriver.gecko.driver", "/Users/mahadihasan/Downloads/geckodriver");

DesiredCapabilities capabilities = DesiredCapabilities.firefox();

capabilities.setCapability("marionette", true);


WebDriver driver = new RemoteWebDriver(new URL("<a href="http://192.168.1.1:4444/wd/hub" target="_blank" rel="nofollow" onmousedown="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2F192.168.1.1%3A4444%2Fwd%2Fhub\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNEYYTBGUCj1tM07mSQCHnVMOZPx9w&#39;;return true;" onclick="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2F192.168.1.1%3A4444%2Fwd%2Fhub\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNEYYTBGUCj1tM07mSQCHnVMOZPx9w&#39;;return true;">http://192.168.1.1:4444/wd/hub"), capabilities);

driver.get("<a href="http://google.com" target="_blank" rel="nofollow" onmousedown="this.href=&#39;http://google.com&#39;;return true;" onclick="this.href=&#39;http://google.com&#39;;return true;">http://google.com");


But the test failed launch Firefox browser:

Exception in thread "main" org.openqa.selenium.SessionNotCreatedException: Unable to create new remote session. desired capabilities = Capabilities [{marionette=true, browserName=firefox, version=, platform=ANY}], required capabilities = null

Build info: version: '3.0.0-beta4', revision: '3169782', time: '2016-09-29 10:30:04 -0700'

System info: host: 'Mahadi.local', ip: '192.168.1.9', os.name: 'Mac OS X', os.arch: 'x86_64', os.version: '10.11.6', java.version: '1.8.0_91'

Driver info: driver.version: RemoteWebDriver

at org.openqa.selenium.remote.ProtocolHandshake.createSession(ProtocolHandshake.java:80)
at org
.openqa.selenium.remote.HttpCommandExecutor.execute(HttpCommandExecutor.java:141)

at org.openqa.selenium.remote.RemoteWebDriver.execute(RemoteWebDriver.java:602)

at org.openqa.selenium.remote.RemoteWebDriver.startSession(RemoteWebDriver.java:242)

at org.openqa.selenium.remote.RemoteWebDriver.<init>(RemoteWebDriver.java:129)

at org.openqa.selenium.remote.RemoteWebDriver.<init>(RemoteWebDriver.java:156)



Selenium server log:
00:20:27.063 INFO - Executing: [new session: Capabilities [{marionette=true, browserName=firefox, version=, platform=ANY}]])
00:20:27.078 INFO - Creating a new session for Capabilities [{marionette=true, browserName=firefox, version=, platform=ANY}]
00:20:27.435 WARN - Exception thrown
java.util.concurrent.ExecutionException: org.openqa.selenium.WebDriverException: java.lang.reflect.InvocationTargetException
Build info: version: '3.0.0-beta4', revision: '3169782', time: '2016-09-29 10:29:23 -0700'
System info: host: 'Mahadi.local', ip: '192.168.1.9', <a href="http://os.name" target="_blank" rel="nofollow" onmousedown="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Fos.name\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNEBq5pahnbxzpNVLfaFeTDcQCtrYg&#39;;return true;" onclick="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Fos.name\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNEBq5pahnbxzpNVLfaFeTDcQCtrYg&#39;;return true;">os.name: 'Mac OS X', os.arch: 'x86_64', os.version: '10.11.6', java.version: '1.8.0_91'
Driver info: driver.version: unknown
        at java.util.concurrent.FutureTask.report(FutureTask.java:122)
        at java.util.concurrent.FutureTask.get(FutureTask.java:192)
.
.
.
       at java.lang.reflect.Constructor.newInstance(Constructor.java:423)
        at org.openqa.selenium.remote.server.FirefoxDriverProvider.callConstructor(FirefoxDriverProvider.java:86)
        ... 9 more
Caused by: java.lang.IllegalStateException: The path to the driver executable must be set by the webdriver.gecko.driver system property; for more information, see <a href="https://github.com/mozilla/geckodriver" target="_blank" rel="nofollow" onmousedown="this.href=&#39;https://www.google.com/url?q\x3dhttps%3A%2F%2Fgithub.com%2Fmozilla%2Fgeckodriver\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNGS-Jw-ENYGAGzH38eboe42n3xcXA&#39;;return true;" onclick="this.href=&#39;https://www.google.com/url?q\x3dhttps%3A%2F%2Fgithub.com%2Fmozilla%2Fgeckodriver\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNGS-Jw-ENYGAGzH38eboe42n3xcXA&#39;;return true;">https://github.com/mozilla/geckodriver. The latest version can be downloaded from <a href="https://github.com/mozilla/geckodriver/releases" target="_blank" rel="nofollow" onmousedown="this.href=&#39;https://www.google.com/url?q\x3dhttps%3A%2F%2Fgithub.com%2Fmozilla%2Fgeckodriver%2Freleases\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNFId2hfAooV5I0Sr5S20Swp5GRNug&#39;;return true;" onclick="this.href=&#39;https://www.google.com/url?q\x3dhttps%3A%2F%2Fgithub.com%2Fmozilla%2Fgeckodriver%2Freleases\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNFId2hfAooV5I0Sr5S20Swp5GRNug&#39;;return true;">https://github.com/mozilla/geckodriver/releases


I was double checked geckodriver path, its there. Its a blocker for me now to proceed. It would be great if anyway can help whats going wrong. 

Thanks in advanced.

Best Regards,
Mahadi Hasan

--
You received this message because you are subscribed to the Google Groups "Selenium Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/selenium-users/366e2fd6-b0df-4526-b054-9ec72538e16a%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Unable to launch firefox by using RemoteWebDriver+geckodriver+selenium 3

Krishnan Mahadevan
GeckoDriver is meant to be used with Firefox v48 or higher [ if I remember correctly ]

Firefox 47.0.1 is known to work without the need for GeckoDriver when coupled with using 2.53.1 version of Selenium.

Thanks & Regards
Krishnan Mahadevan

"All the desirable things in life are either illegal, expensive, fattening or in love with someone else!"
My Scribblings @ http://wakened-cognition.blogspot.com/
My Technical Scribbings @ http://rationaleemotions.wordpress.com/

On Thu, Oct 27, 2016 at 3:46 AM, Deepa Padmanabhan <[hidden email]> wrote:

I am using:
- selenium-server-standalone-3.0.1.jar
- geckodriver (v0.11.0)
- Firefox 42.0
- Mac - OSX EI Captain
- JRE 1.8

I also set gecko driver while starting up the server and still face this issue

On Friday, September 30, 2016 at 3:27:17 PM UTC-7, mahadi wrote:
Hello all,

I am using:
- selenium-server-standalone-3.0.0-beta4.jar
- geckodriver (v0.10.0)
- Firefox 49.0
- Mac - OSX EI Captain
- JRE 1.8

Code:

System.setProperty("webdriver.gecko.driver", "/Users/mahadihasan/Downloads/geckodriver");

DesiredCapabilities capabilities = DesiredCapabilities.firefox();

capabilities.setCapability("marionette", true);


WebDriver driver = new RemoteWebDriver(new URL("http://192.168.1.1:4444/wd/hub"), capabilities);

driver.get("http://google.com");


But the test failed launch Firefox browser:

Exception in thread "main" org.openqa.selenium.SessionNotCreatedException: Unable to create new remote session. desired capabilities = Capabilities [{marionette=true, browserName=firefox, version=, platform=ANY}], required capabilities = null

Build info: version: '3.0.0-beta4', revision: '3169782', time: '2016-09-29 10:30:04 -0700'

System info: host: 'Mahadi.local', ip: '192.168.1.9', os.name: 'Mac OS X', os.arch: 'x86_64', os.version: '10.11.6', java.version: '1.8.0_91'

Driver info: driver.version: RemoteWebDriver

at org.openqa.selenium.remote.ProtocolHandshake.createSession(ProtocolHandshake.java:80)
at org
.openqa.selenium.remote.HttpCommandExecutor.execute(HttpCommandExecutor.java:141)

at org.openqa.selenium.remote.RemoteWebDriver.execute(RemoteWebDriver.java:602)

at org.openqa.selenium.remote.RemoteWebDriver.startSession(RemoteWebDriver.java:242)

at org.openqa.selenium.remote.RemoteWebDriver.<init>(RemoteWebDriver.java:129)

at org.openqa.selenium.remote.RemoteWebDriver.<init>(RemoteWebDriver.java:156)



Selenium server log:
00:20:27.063 INFO - Executing: [new session: Capabilities [{marionette=true, browserName=firefox, version=, platform=ANY}]])
00:20:27.078 INFO - Creating a new session for Capabilities [{marionette=true, browserName=firefox, version=, platform=ANY}]
00:20:27.435 WARN - Exception thrown
java.util.concurrent.ExecutionException: org.openqa.selenium.WebDriverException: java.lang.reflect.InvocationTargetException
Build info: version: '3.0.0-beta4', revision: '3169782', time: '2016-09-29 10:29:23 -0700'
System info: host: 'Mahadi.local', ip: '192.168.1.9', os.name: 'Mac OS X', os.arch: 'x86_64', os.version: '10.11.6', java.version: '1.8.0_91'
Driver info: driver.version: unknown
        at java.util.concurrent.FutureTask.report(FutureTask.java:122)
        at java.util.concurrent.FutureTask.get(FutureTask.java:192)
.
.
.
       at java.lang.reflect.Constructor.newInstance(Constructor.java:423)
        at org.openqa.selenium.remote.server.FirefoxDriverProvider.callConstructor(FirefoxDriverProvider.java:86)
        ... 9 more
Caused by: java.lang.IllegalStateException: The path to the driver executable must be set by the webdriver.gecko.driver system property; for more information, see https://github.com/mozilla/geckodriver. The latest version can be downloaded from https://github.com/mozilla/geckodriver/releases


I was double checked geckodriver path, its there. Its a blocker for me now to proceed. It would be great if anyway can help whats going wrong. 

Thanks in advanced.

Best Regards,
Mahadi Hasan

--
You received this message because you are subscribed to the Google Groups "Selenium Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/selenium-users/366e2fd6-b0df-4526-b054-9ec72538e16a%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

--
You received this message because you are subscribed to the Google Groups "Selenium Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/selenium-users/CANikZLkYNHWQ_cQdb5oKghZzVyV%3DdLBmJAMNOvnmGm-PwQ7MgA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Unable to launch firefox by using RemoteWebDriver+geckodriver+selenium 3

Andreas Tolfsen
⇜Krishnan Mahadevan⇝ <[hidden email]> writes:

> GeckoDriver is meant to be used with Firefox v48 or higher [ if I
> remember correctly ]

The more recent the Firefox, generally the better the experience using
geckodriver will be.

There are certain patches available in more recent Firefox versions
that have not been backported/uplifted to earlier versions.  For this
reasons, I recommend using Nightly when using geckodriver, which you
can get as a tarball here:

        https://nightly.mozilla.org/

--
You received this message because you are subscribed to the Google Groups "Selenium Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/selenium-users/20161027135018.32fdf6d2363f24d844214bfc%40mozilla.com.
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Unable to launch firefox by using RemoteWebDriver+geckodriver+selenium 3

Vinoth Kumar
In reply to this post by KY07
It helps me perfectly to run my test in node device. but i can run only with one browser. i wonder if i get solution to run multiple browser with multiple nodes...

thanks in advance if it possible.

On Sunday, 2 October 2016 22:30:01 UTC+5:30, KY07 wrote:
First of all, I think the url used in your remote driver is not the expected one. I think you should use the node's URL instead of the hub's one.
Second, I had the same issue described here while playing with grid and I solved it by passing the driver(s) info to the node's during its startup:
java -Dwebdriver.gecko.driver=MY_GECKO_ABSOLUTE_PATH -Dwebdriver.chrome.driver=MY_CHROME_ABSOLUTE_PATH -jar selenium-xyz.jar -role webdriver -hub MY_HUB_SERVER_IP:PORT/grid/register -port 5566 (or any other available port)

You'll then have to run it like this:
      DesiredCapabilities caps = DesiredCapabilities.firefox();//use your preferred browser
      caps.setBrowserName("firefox");//AGAIN, use the right browser name that you can get from the hub's config page
      caps.setPlatform(Platform.VISTA);//use the appropriate platform's name that you can get from the hub's config page
     
      this.driver = new RemoteWebDriver(new URL("<a href="http://192.168.1.50:5566/wd/hub" target="_blank" rel="nofollow" onmousedown="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2F192.168.1.50%3A5566%2Fwd%2Fhub\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNEl9YouaZkvLMvw-FjFbDuRfGJ1aw&#39;;return true;" onclick="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2F192.168.1.50%3A5566%2Fwd%2Fhub\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNEl9YouaZkvLMvw-FjFbDuRfGJ1aw&#39;;return true;">http://192.168.1.50:5566/wd/hub"), caps);    //replace the url by your own node's url


Le samedi 1 octobre 2016 00:27:17 UTC+2, mahadi a écrit :
Hello all,

I am using:
- selenium-server-standalone-3.0.0-beta4.jar
- geckodriver (v0.10.0)
- Firefox 49.0
- Mac - OSX EI Captain
- JRE 1.8

Code:

System.setProperty("webdriver.gecko.driver", "/Users/mahadihasan/Downloads/geckodriver");

DesiredCapabilities capabilities = DesiredCapabilities.firefox();

capabilities.setCapability("marionette", true);


WebDriver driver = new RemoteWebDriver(new URL("<a href="http://192.168.1.1:4444/wd/hub" rel="nofollow" target="_blank" onmousedown="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2F192.168.1.1%3A4444%2Fwd%2Fhub\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNEYYTBGUCj1tM07mSQCHnVMOZPx9w&#39;;return true;" onclick="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2F192.168.1.1%3A4444%2Fwd%2Fhub\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNEYYTBGUCj1tM07mSQCHnVMOZPx9w&#39;;return true;">http://192.168.1.1:4444/wd/hub"), capabilities);

driver.get("<a href="http://google.com" rel="nofollow" target="_blank" onmousedown="this.href=&#39;http://google.com&#39;;return true;" onclick="this.href=&#39;http://google.com&#39;;return true;">http://google.com");


But the test failed launch Firefox browser:

Exception in thread "main" org.openqa.selenium.SessionNotCreatedException: Unable to create new remote session. desired capabilities = Capabilities [{marionette=true, browserName=firefox, version=, platform=ANY}], required capabilities = null

Build info: version: '3.0.0-beta4', revision: '3169782', time: '2016-09-29 10:30:04 -0700'

System info: host: 'Mahadi.local', ip: '192.168.1.9', os.name: 'Mac OS X', os.arch: 'x86_64', os.version: '10.11.6', java.version: '1.8.0_91'

Driver info: driver.version: RemoteWebDriver

at org.openqa.selenium.remote.ProtocolHandshake.createSession(ProtocolHandshake.java:80)
at org
.openqa.selenium.remote.HttpCommandExecutor.execute(HttpCommandExecutor.java:141)

at org.openqa.selenium.remote.RemoteWebDriver.execute(RemoteWebDriver.java:602)

at org.openqa.selenium.remote.RemoteWebDriver.startSession(RemoteWebDriver.java:242)

at org.openqa.selenium.remote.RemoteWebDriver.<init>(RemoteWebDriver.java:129)

at org.openqa.selenium.remote.RemoteWebDriver.<init>(RemoteWebDriver.java:156)



Selenium server log:
00:20:27.063 INFO - Executing: [new session: Capabilities [{marionette=true, browserName=firefox, version=, platform=ANY}]])
00:20:27.078 INFO - Creating a new session for Capabilities [{marionette=true, browserName=firefox, version=, platform=ANY}]
00:20:27.435 WARN - Exception thrown
java.util.concurrent.ExecutionException: org.openqa.selenium.WebDriverException: java.lang.reflect.InvocationTargetException
Build info: version: '3.0.0-beta4', revision: '3169782', time: '2016-09-29 10:29:23 -0700'
System info: host: 'Mahadi.local', ip: '192.168.1.9', <a href="http://os.name" rel="nofollow" target="_blank" onmousedown="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Fos.name\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNEBq5pahnbxzpNVLfaFeTDcQCtrYg&#39;;return true;" onclick="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Fos.name\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNEBq5pahnbxzpNVLfaFeTDcQCtrYg&#39;;return true;">os.name: 'Mac OS X', os.arch: 'x86_64', os.version: '10.11.6', java.version: '1.8.0_91'
Driver info: driver.version: unknown
        at java.util.concurrent.FutureTask.report(FutureTask.java:122)
        at java.util.concurrent.FutureTask.get(FutureTask.java:192)
.
.
.
       at java.lang.reflect.Constructor.newInstance(Constructor.java:423)
        at org.openqa.selenium.remote.server.FirefoxDriverProvider.callConstructor(FirefoxDriverProvider.java:86)
        ... 9 more
Caused by: java.lang.IllegalStateException: The path to the driver executable must be set by the webdriver.gecko.driver system property; for more information, see <a href="https://github.com/mozilla/geckodriver" rel="nofollow" target="_blank" onmousedown="this.href=&#39;https://www.google.com/url?q\x3dhttps%3A%2F%2Fgithub.com%2Fmozilla%2Fgeckodriver\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNGS-Jw-ENYGAGzH38eboe42n3xcXA&#39;;return true;" onclick="this.href=&#39;https://www.google.com/url?q\x3dhttps%3A%2F%2Fgithub.com%2Fmozilla%2Fgeckodriver\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNGS-Jw-ENYGAGzH38eboe42n3xcXA&#39;;return true;">https://github.com/mozilla/geckodriver. The latest version can be downloaded from <a href="https://github.com/mozilla/geckodriver/releases" rel="nofollow" target="_blank" onmousedown="this.href=&#39;https://www.google.com/url?q\x3dhttps%3A%2F%2Fgithub.com%2Fmozilla%2Fgeckodriver%2Freleases\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNFId2hfAooV5I0Sr5S20Swp5GRNug&#39;;return true;" onclick="this.href=&#39;https://www.google.com/url?q\x3dhttps%3A%2F%2Fgithub.com%2Fmozilla%2Fgeckodriver%2Freleases\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNFId2hfAooV5I0Sr5S20Swp5GRNug&#39;;return true;">https://github.com/mozilla/geckodriver/releases


I was double checked geckodriver path, its there. Its a blocker for me now to proceed. It would be great if anyway can help whats going wrong. 

Thanks in advanced.

Best Regards,
Mahadi Hasan

--
You received this message because you are subscribed to the Google Groups "Selenium Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/selenium-users/9406db70-4243-4a3a-92d9-7c7690671f2a%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Unable to launch firefox by using RemoteWebDriver+geckodriver+selenium 3

Luke Kende
For me, the fix here was to remove the /wd/hub in the URL.

So, running geckdriver manually with -vv flag I could see the error:

1481656855494 webdriver::server DEBUG Returning body {"error":"unknown command","message":"POST /wd/hub/session did not match a known command"}


Then looking at mozilla supported commands here:  https://developer.mozilla.org/en-US/docs/Mozilla/QA/Marionette/WebDriver/status
saw that it should not have /wd/hub but just /session.

So worked when called like this:

WebDriver driver = new RemoteWebDriver(new URL("http://127.0.0.1:4444"), caps); //no /wd/hub



On Wednesday, November 30, 2016 at 11:17:56 PM UTC-7, Vinoth Kumar wrote:
It helps me perfectly to run my test in node device. but i can run only with one browser. i wonder if i get solution to run multiple browser with multiple nodes...

thanks in advance if it possible.

On Sunday, 2 October 2016 22:30:01 UTC+5:30, KY07 wrote:
First of all, I think the url used in your remote driver is not the expected one. I think you should use the node's URL instead of the hub's one.
Second, I had the same issue described here while playing with grid and I solved it by passing the driver(s) info to the node's during its startup:
java -Dwebdriver.gecko.driver=MY_GECKO_ABSOLUTE_PATH -Dwebdriver.chrome.driver=MY_CHROME_ABSOLUTE_PATH -jar selenium-xyz.jar -role webdriver -hub MY_HUB_SERVER_IP:PORT/grid/register -port 5566 (or any other available port)

You'll then have to run it like this:
      DesiredCapabilities caps = DesiredCapabilities.firefox();//use your preferred browser
      caps.setBrowserName("firefox");//AGAIN, use the right browser name that you can get from the hub's config page
      caps.setPlatform(Platform.VISTA);//use the appropriate platform's name that you can get from the hub's config page
     
      this.driver = new RemoteWebDriver(new URL("<a href="http://192.168.1.50:5566/wd/hub" rel="nofollow" target="_blank" onmousedown="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2F192.168.1.50%3A5566%2Fwd%2Fhub\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNEl9YouaZkvLMvw-FjFbDuRfGJ1aw&#39;;return true;" onclick="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2F192.168.1.50%3A5566%2Fwd%2Fhub\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNEl9YouaZkvLMvw-FjFbDuRfGJ1aw&#39;;return true;">http://192.168.1.50:5566/wd/hub"), caps);    //replace the url by your own node's url


Le samedi 1 octobre 2016 00:27:17 UTC+2, mahadi a écrit :
Hello all,

I am using:
- selenium-server-standalone-3.0.0-beta4.jar
- geckodriver (v0.10.0)
- Firefox 49.0
- Mac - OSX EI Captain
- JRE 1.8

Code:

System.setProperty("webdriver.gecko.driver", "/Users/mahadihasan/Downloads/geckodriver");

DesiredCapabilities capabilities = DesiredCapabilities.firefox();

capabilities.setCapability("marionette", true);


WebDriver driver = new RemoteWebDriver(new URL("<a href="http://192.168.1.1:4444/wd/hub" rel="nofollow" target="_blank" onmousedown="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2F192.168.1.1%3A4444%2Fwd%2Fhub\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNEYYTBGUCj1tM07mSQCHnVMOZPx9w&#39;;return true;" onclick="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2F192.168.1.1%3A4444%2Fwd%2Fhub\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNEYYTBGUCj1tM07mSQCHnVMOZPx9w&#39;;return true;">http://192.168.1.1:4444/wd/hub"), capabilities);

driver.get("<a href="http://google.com" rel="nofollow" target="_blank" onmousedown="this.href=&#39;http://google.com&#39;;return true;" onclick="this.href=&#39;http://google.com&#39;;return true;">http://google.com");


But the test failed launch Firefox browser:

Exception in thread "main" org.openqa.selenium.SessionNotCreatedException: Unable to create new remote session. desired capabilities = Capabilities [{marionette=true, browserName=firefox, version=, platform=ANY}], required capabilities = null

Build info: version: '3.0.0-beta4', revision: '3169782', time: '2016-09-29 10:30:04 -0700'

System info: host: 'Mahadi.local', ip: '192.168.1.9', os.name: 'Mac OS X', os.arch: 'x86_64', os.version: '10.11.6', java.version: '1.8.0_91'

Driver info: driver.version: RemoteWebDriver

at org.openqa.selenium.remote.ProtocolHandshake.createSession(ProtocolHandshake.java:80)
at org
.openqa.selenium.remote.HttpCommandExecutor.execute(HttpCommandExecutor.java:141)

at org.openqa.selenium.remote.RemoteWebDriver.execute(RemoteWebDriver.java:602)

at org.openqa.selenium.remote.RemoteWebDriver.startSession(RemoteWebDriver.java:242)

at org.openqa.selenium.remote.RemoteWebDriver.<init>(RemoteWebDriver.java:129)

at org.openqa.selenium.remote.RemoteWebDriver.<init>(RemoteWebDriver.java:156)



Selenium server log:
00:20:27.063 INFO - Executing: [new session: Capabilities [{marionette=true, browserName=firefox, version=, platform=ANY}]])
00:20:27.078 INFO - Creating a new session for Capabilities [{marionette=true, browserName=firefox, version=, platform=ANY}]
00:20:27.435 WARN - Exception thrown
java.util.concurrent.ExecutionException: org.openqa.selenium.WebDriverException: java.lang.reflect.InvocationTargetException
Build info: version: '3.0.0-beta4', revision: '3169782', time: '2016-09-29 10:29:23 -0700'
System info: host: 'Mahadi.local', ip: '192.168.1.9', <a href="http://os.name" rel="nofollow" target="_blank" onmousedown="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Fos.name\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNEBq5pahnbxzpNVLfaFeTDcQCtrYg&#39;;return true;" onclick="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Fos.name\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNEBq5pahnbxzpNVLfaFeTDcQCtrYg&#39;;return true;">os.name: 'Mac OS X', os.arch: 'x86_64', os.version: '10.11.6', java.version: '1.8.0_91'
Driver info: driver.version: unknown
        at java.util.concurrent.FutureTask.report(FutureTask.java:122)
        at java.util.concurrent.FutureTask.get(FutureTask.java:192)
.
.
.
       at java.lang.reflect.Constructor.newInstance(Constructor.java:423)
        at org.openqa.selenium.remote.server.FirefoxDriverProvider.callConstructor(FirefoxDriverProvider.java:86)
        ... 9 more
Caused by: java.lang.IllegalStateException: The path to the driver executable must be set by the webdriver.gecko.driver system property; for more information, see <a href="https://github.com/mozilla/geckodriver" rel="nofollow" target="_blank" onmousedown="this.href=&#39;https://www.google.com/url?q\x3dhttps%3A%2F%2Fgithub.com%2Fmozilla%2Fgeckodriver\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNGS-Jw-ENYGAGzH38eboe42n3xcXA&#39;;return true;" onclick="this.href=&#39;https://www.google.com/url?q\x3dhttps%3A%2F%2Fgithub.com%2Fmozilla%2Fgeckodriver\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNGS-Jw-ENYGAGzH38eboe42n3xcXA&#39;;return true;">https://github.com/mozilla/geckodriver. The latest version can be downloaded from <a href="https://github.com/mozilla/geckodriver/releases" rel="nofollow" target="_blank" onmousedown="this.href=&#39;https://www.google.com/url?q\x3dhttps%3A%2F%2Fgithub.com%2Fmozilla%2Fgeckodriver%2Freleases\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNFId2hfAooV5I0Sr5S20Swp5GRNug&#39;;return true;" onclick="this.href=&#39;https://www.google.com/url?q\x3dhttps%3A%2F%2Fgithub.com%2Fmozilla%2Fgeckodriver%2Freleases\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNFId2hfAooV5I0Sr5S20Swp5GRNug&#39;;return true;">https://github.com/mozilla/geckodriver/releases


I was double checked geckodriver path, its there. Its a blocker for me now to proceed. It would be great if anyway can help whats going wrong. 

Thanks in advanced.

Best Regards,
Mahadi Hasan

--
You received this message because you are subscribed to the Google Groups "Selenium Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/selenium-users/d7615e64-63a5-46ec-91b2-7dbac1289846%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Unable to launch firefox by using RemoteWebDriver+geckodriver+selenium 3

Usha Brahma
In reply to this post by KY07
Hi KY07,

Thank you so much. This solved my issue.

On Sunday, October 2, 2016 at 10:00:01 AM UTC-7, KY07 wrote:
First of all, I think the url used in your remote driver is not the expected one. I think you should use the node's URL instead of the hub's one.
Second, I had the same issue described here while playing with grid and I solved it by passing the driver(s) info to the node's during its startup:
java -Dwebdriver.gecko.driver=MY_GECKO_ABSOLUTE_PATH -Dwebdriver.chrome.driver=MY_CHROME_ABSOLUTE_PATH -jar selenium-xyz.jar -role webdriver -hub MY_HUB_SERVER_IP:PORT/grid/register -port 5566 (or any other available port)

You'll then have to run it like this:
      DesiredCapabilities caps = DesiredCapabilities.firefox();//use your preferred browser
      caps.setBrowserName("firefox");//AGAIN, use the right browser name that you can get from the hub's config page
      caps.setPlatform(Platform.VISTA);//use the appropriate platform's name that you can get from the hub's config page
     
      this.driver = new RemoteWebDriver(new URL("<a href="http://192.168.1.50:5566/wd/hub" target="_blank" rel="nofollow" onmousedown="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2F192.168.1.50%3A5566%2Fwd%2Fhub\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNEl9YouaZkvLMvw-FjFbDuRfGJ1aw&#39;;return true;" onclick="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2F192.168.1.50%3A5566%2Fwd%2Fhub\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNEl9YouaZkvLMvw-FjFbDuRfGJ1aw&#39;;return true;">http://192.168.1.50:5566/wd/hub"), caps);    //replace the url by your own node's url


Le samedi 1 octobre 2016 00:27:17 UTC+2, mahadi a écrit :
Hello all,

I am using:
- selenium-server-standalone-3.0.0-beta4.jar
- geckodriver (v0.10.0)
- Firefox 49.0
- Mac - OSX EI Captain
- JRE 1.8

Code:

System.setProperty("webdriver.gecko.driver", "/Users/mahadihasan/Downloads/geckodriver");

DesiredCapabilities capabilities = DesiredCapabilities.firefox();

capabilities.setCapability("marionette", true);


WebDriver driver = new RemoteWebDriver(new URL("<a href="http://192.168.1.1:4444/wd/hub" rel="nofollow" target="_blank" onmousedown="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2F192.168.1.1%3A4444%2Fwd%2Fhub\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNEYYTBGUCj1tM07mSQCHnVMOZPx9w&#39;;return true;" onclick="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2F192.168.1.1%3A4444%2Fwd%2Fhub\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNEYYTBGUCj1tM07mSQCHnVMOZPx9w&#39;;return true;">http://192.168.1.1:4444/wd/hub"), capabilities);

driver.get("<a href="http://google.com" rel="nofollow" target="_blank" onmousedown="this.href=&#39;http://google.com&#39;;return true;" onclick="this.href=&#39;http://google.com&#39;;return true;">http://google.com");


But the test failed launch Firefox browser:

Exception in thread "main" org.openqa.selenium.SessionNotCreatedException: Unable to create new remote session. desired capabilities = Capabilities [{marionette=true, browserName=firefox, version=, platform=ANY}], required capabilities = null

Build info: version: '3.0.0-beta4', revision: '3169782', time: '2016-09-29 10:30:04 -0700'

System info: host: 'Mahadi.local', ip: '192.168.1.9', os.name: 'Mac OS X', os.arch: 'x86_64', os.version: '10.11.6', java.version: '1.8.0_91'

Driver info: driver.version: RemoteWebDriver

at org.openqa.selenium.remote.ProtocolHandshake.createSession(ProtocolHandshake.java:80)
at org
.openqa.selenium.remote.HttpCommandExecutor.execute(HttpCommandExecutor.java:141)

at org.openqa.selenium.remote.RemoteWebDriver.execute(RemoteWebDriver.java:602)

at org.openqa.selenium.remote.RemoteWebDriver.startSession(RemoteWebDriver.java:242)

at org.openqa.selenium.remote.RemoteWebDriver.<init>(RemoteWebDriver.java:129)

at org.openqa.selenium.remote.RemoteWebDriver.<init>(RemoteWebDriver.java:156)



Selenium server log:
00:20:27.063 INFO - Executing: [new session: Capabilities [{marionette=true, browserName=firefox, version=, platform=ANY}]])
00:20:27.078 INFO - Creating a new session for Capabilities [{marionette=true, browserName=firefox, version=, platform=ANY}]
00:20:27.435 WARN - Exception thrown
java.util.concurrent.ExecutionException: org.openqa.selenium.WebDriverException: java.lang.reflect.InvocationTargetException
Build info: version: '3.0.0-beta4', revision: '3169782', time: '2016-09-29 10:29:23 -0700'
System info: host: 'Mahadi.local', ip: '192.168.1.9', <a href="http://os.name" rel="nofollow" target="_blank" onmousedown="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Fos.name\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNEBq5pahnbxzpNVLfaFeTDcQCtrYg&#39;;return true;" onclick="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Fos.name\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNEBq5pahnbxzpNVLfaFeTDcQCtrYg&#39;;return true;">os.name: 'Mac OS X', os.arch: 'x86_64', os.version: '10.11.6', java.version: '1.8.0_91'
Driver info: driver.version: unknown
        at java.util.concurrent.FutureTask.report(FutureTask.java:122)
        at java.util.concurrent.FutureTask.get(FutureTask.java:192)
.
.
.
       at java.lang.reflect.Constructor.newInstance(Constructor.java:423)
        at org.openqa.selenium.remote.server.FirefoxDriverProvider.callConstructor(FirefoxDriverProvider.java:86)
        ... 9 more
Caused by: java.lang.IllegalStateException: The path to the driver executable must be set by the webdriver.gecko.driver system property; for more information, see <a href="https://github.com/mozilla/geckodriver" rel="nofollow" target="_blank" onmousedown="this.href=&#39;https://www.google.com/url?q\x3dhttps%3A%2F%2Fgithub.com%2Fmozilla%2Fgeckodriver\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNGS-Jw-ENYGAGzH38eboe42n3xcXA&#39;;return true;" onclick="this.href=&#39;https://www.google.com/url?q\x3dhttps%3A%2F%2Fgithub.com%2Fmozilla%2Fgeckodriver\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNGS-Jw-ENYGAGzH38eboe42n3xcXA&#39;;return true;">https://github.com/mozilla/geckodriver. The latest version can be downloaded from <a href="https://github.com/mozilla/geckodriver/releases" rel="nofollow" target="_blank" onmousedown="this.href=&#39;https://www.google.com/url?q\x3dhttps%3A%2F%2Fgithub.com%2Fmozilla%2Fgeckodriver%2Freleases\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNFId2hfAooV5I0Sr5S20Swp5GRNug&#39;;return true;" onclick="this.href=&#39;https://www.google.com/url?q\x3dhttps%3A%2F%2Fgithub.com%2Fmozilla%2Fgeckodriver%2Freleases\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNFId2hfAooV5I0Sr5S20Swp5GRNug&#39;;return true;">https://github.com/mozilla/geckodriver/releases


I was double checked geckodriver path, its there. Its a blocker for me now to proceed. It would be great if anyway can help whats going wrong. 

Thanks in advanced.

Best Regards,
Mahadi Hasan

--
You received this message because you are subscribed to the Google Groups "Selenium Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/selenium-users/47103816-d2f6-4e5f-a397-6a8b25cf2c27%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Unable to launch firefox by using RemoteWebDriver+geckodriver+selenium 3

Rupesh Trivedi
In reply to this post by mahadi
I'm still having same issue, tried multiple solutions from google not sure whats wrong, can you please help?

On Friday, September 30, 2016 at 6:27:17 PM UTC-4, mahadi wrote:
Hello all,

I am using:
- selenium-server-standalone-3.0.0-beta4.jar
- geckodriver (v0.10.0)
- Firefox 49.0
- Mac - OSX EI Captain
- JRE 1.8

Code:

System.setProperty("webdriver.gecko.driver", "/Users/mahadihasan/Downloads/geckodriver");

DesiredCapabilities capabilities = DesiredCapabilities.firefox();

capabilities.setCapability("marionette", true);


WebDriver driver = new RemoteWebDriver(new URL("<a href="http://192.168.1.1:4444/wd/hub" target="_blank" rel="nofollow" onmousedown="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2F192.168.1.1%3A4444%2Fwd%2Fhub\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNEYYTBGUCj1tM07mSQCHnVMOZPx9w&#39;;return true;" onclick="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2F192.168.1.1%3A4444%2Fwd%2Fhub\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNEYYTBGUCj1tM07mSQCHnVMOZPx9w&#39;;return true;">http://192.168.1.1:4444/wd/hub"), capabilities);

driver.get("<a href="http://google.com" target="_blank" rel="nofollow" onmousedown="this.href=&#39;http://google.com&#39;;return true;" onclick="this.href=&#39;http://google.com&#39;;return true;">http://google.com");


But the test failed launch Firefox browser:

Exception in thread "main" org.openqa.selenium.SessionNotCreatedException: Unable to create new remote session. desired capabilities = Capabilities [{marionette=true, browserName=firefox, version=, platform=ANY}], required capabilities = null

Build info: version: '3.0.0-beta4', revision: '3169782', time: '2016-09-29 10:30:04 -0700'

System info: host: 'Mahadi.local', ip: '192.168.1.9', os.name: 'Mac OS X', os.arch: 'x86_64', os.version: '10.11.6', java.version: '1.8.0_91'

Driver info: driver.version: RemoteWebDriver

at org.openqa.selenium.remote.ProtocolHandshake.createSession(ProtocolHandshake.java:80)
at org
.openqa.selenium.remote.HttpCommandExecutor.execute(HttpCommandExecutor.java:141)

at org.openqa.selenium.remote.RemoteWebDriver.execute(RemoteWebDriver.java:602)

at org.openqa.selenium.remote.RemoteWebDriver.startSession(RemoteWebDriver.java:242)

at org.openqa.selenium.remote.RemoteWebDriver.<init>(RemoteWebDriver.java:129)

at org.openqa.selenium.remote.RemoteWebDriver.<init>(RemoteWebDriver.java:156)



Selenium server log:
00:20:27.063 INFO - Executing: [new session: Capabilities [{marionette=true, browserName=firefox, version=, platform=ANY}]])
00:20:27.078 INFO - Creating a new session for Capabilities [{marionette=true, browserName=firefox, version=, platform=ANY}]
00:20:27.435 WARN - Exception thrown
java.util.concurrent.ExecutionException: org.openqa.selenium.WebDriverException: java.lang.reflect.InvocationTargetException
Build info: version: '3.0.0-beta4', revision: '3169782', time: '2016-09-29 10:29:23 -0700'
System info: host: 'Mahadi.local', ip: '192.168.1.9', <a href="http://os.name" target="_blank" rel="nofollow" onmousedown="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Fos.name\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNEBq5pahnbxzpNVLfaFeTDcQCtrYg&#39;;return true;" onclick="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Fos.name\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNEBq5pahnbxzpNVLfaFeTDcQCtrYg&#39;;return true;">os.name: 'Mac OS X', os.arch: 'x86_64', os.version: '10.11.6', java.version: '1.8.0_91'
Driver info: driver.version: unknown
        at java.util.concurrent.FutureTask.report(FutureTask.java:122)
        at java.util.concurrent.FutureTask.get(FutureTask.java:192)
.
.
.
       at java.lang.reflect.Constructor.newInstance(Constructor.java:423)
        at org.openqa.selenium.remote.server.FirefoxDriverProvider.callConstructor(FirefoxDriverProvider.java:86)
        ... 9 more
Caused by: java.lang.IllegalStateException: The path to the driver executable must be set by the webdriver.gecko.driver system property; for more information, see <a href="https://github.com/mozilla/geckodriver" target="_blank" rel="nofollow" onmousedown="this.href=&#39;https://www.google.com/url?q\x3dhttps%3A%2F%2Fgithub.com%2Fmozilla%2Fgeckodriver\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNGS-Jw-ENYGAGzH38eboe42n3xcXA&#39;;return true;" onclick="this.href=&#39;https://www.google.com/url?q\x3dhttps%3A%2F%2Fgithub.com%2Fmozilla%2Fgeckodriver\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNGS-Jw-ENYGAGzH38eboe42n3xcXA&#39;;return true;">https://github.com/mozilla/geckodriver. The latest version can be downloaded from <a href="https://github.com/mozilla/geckodriver/releases" target="_blank" rel="nofollow" onmousedown="this.href=&#39;https://www.google.com/url?q\x3dhttps%3A%2F%2Fgithub.com%2Fmozilla%2Fgeckodriver%2Freleases\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNFId2hfAooV5I0Sr5S20Swp5GRNug&#39;;return true;" onclick="this.href=&#39;https://www.google.com/url?q\x3dhttps%3A%2F%2Fgithub.com%2Fmozilla%2Fgeckodriver%2Freleases\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNFId2hfAooV5I0Sr5S20Swp5GRNug&#39;;return true;">https://github.com/mozilla/geckodriver/releases


I was double checked geckodriver path, its there. Its a blocker for me now to proceed. It would be great if anyway can help whats going wrong. 

Thanks in advanced.

Best Regards,
Mahadi Hasan

--
You received this message because you are subscribed to the Google Groups "Selenium Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/selenium-users/3bd5c75e-da02-4a3c-9e17-d33cbfa9a0ef%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Unable to launch firefox by using RemoteWebDriver+geckodriver+selenium 3

Ullas Krishnan
In reply to this post by mahadi
Thanks

On Monday, October 3, 2016 at 8:39:25 PM UTC+5:30, mahadi wrote:
This helps me, thanks

On Sunday, October 2, 2016 at 7:00:01 PM UTC+2, KY07 wrote:
First of all, I think the url used in your remote driver is not the expected one. I think you should use the node's URL instead of the hub's one.
Second, I had the same issue described here while playing with grid and I solved it by passing the driver(s) info to the node's during its startup:
java -Dwebdriver.gecko.driver=MY_GECKO_ABSOLUTE_PATH -Dwebdriver.chrome.driver=MY_CHROME_ABSOLUTE_PATH -jar selenium-xyz.jar -role webdriver -hub MY_HUB_SERVER_IP:PORT/grid/register -port 5566 (or any other available port)

You'll then have to run it like this:
      DesiredCapabilities caps = DesiredCapabilities.firefox();//use your preferred browser
      caps.setBrowserName("firefox");//AGAIN, use the right browser name that you can get from the hub's config page
      caps.setPlatform(Platform.VISTA);//use the appropriate platform's name that you can get from the hub's config page
     
      this.driver = new RemoteWebDriver(new URL("<a href="http://192.168.1.50:5566/wd/hub" rel="nofollow" target="_blank" onmousedown="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2F192.168.1.50%3A5566%2Fwd%2Fhub\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNEl9YouaZkvLMvw-FjFbDuRfGJ1aw&#39;;return true;" onclick="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2F192.168.1.50%3A5566%2Fwd%2Fhub\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNEl9YouaZkvLMvw-FjFbDuRfGJ1aw&#39;;return true;">http://192.168.1.50:5566/wd/hub"), caps);    //replace the url by your own node's url


Le samedi 1 octobre 2016 00:27:17 UTC+2, mahadi a écrit :
Hello all,

I am using:
- selenium-server-standalone-3.0.0-beta4.jar
- geckodriver (v0.10.0)
- Firefox 49.0
- Mac - OSX EI Captain
- JRE 1.8

Code:

System.setProperty("webdriver.gecko.driver", "/Users/mahadihasan/Downloads/geckodriver");

DesiredCapabilities capabilities = DesiredCapabilities.firefox();

capabilities.setCapability("marionette", true);


WebDriver driver = new RemoteWebDriver(new URL("<a href="http://192.168.1.1:4444/wd/hub" rel="nofollow" target="_blank" onmousedown="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2F192.168.1.1%3A4444%2Fwd%2Fhub\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNEYYTBGUCj1tM07mSQCHnVMOZPx9w&#39;;return true;" onclick="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2F192.168.1.1%3A4444%2Fwd%2Fhub\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNEYYTBGUCj1tM07mSQCHnVMOZPx9w&#39;;return true;">http://192.168.1.1:4444/wd/hub"), capabilities);

driver.get("<a href="http://google.com" rel="nofollow" target="_blank" onmousedown="this.href=&#39;http://google.com&#39;;return true;" onclick="this.href=&#39;http://google.com&#39;;return true;">http://google.com");


But the test failed launch Firefox browser:

Exception in thread "main" org.openqa.selenium.SessionNotCreatedException: Unable to create new remote session. desired capabilities = Capabilities [{marionette=true, browserName=firefox, version=, platform=ANY}], required capabilities = null

Build info: version: '3.0.0-beta4', revision: '3169782', time: '2016-09-29 10:30:04 -0700'

System info: host: 'Mahadi.local', ip: '192.168.1.9', os.name: 'Mac OS X', os.arch: 'x86_64', os.version: '10.11.6', java.version: '1.8.0_91'

Driver info: driver.version: RemoteWebDriver

at org.openqa.selenium.remote.ProtocolHandshake.createSession(ProtocolHandshake.java:80)
at org
.openqa.selenium.remote.HttpCommandExecutor.execute(HttpCommandExecutor.java:141)

at org.openqa.selenium.remote.RemoteWebDriver.execute(RemoteWebDriver.java:602)

at org.openqa.selenium.remote.RemoteWebDriver.startSession(RemoteWebDriver.java:242)

at org.openqa.selenium.remote.RemoteWebDriver.<init>(RemoteWebDriver.java:129)

at org.openqa.selenium.remote.RemoteWebDriver.<init>(RemoteWebDriver.java:156)



Selenium server log:
00:20:27.063 INFO - Executing: [new session: Capabilities [{marionette=true, browserName=firefox, version=, platform=ANY}]])
00:20:27.078 INFO - Creating a new session for Capabilities [{marionette=true, browserName=firefox, version=, platform=ANY}]
00:20:27.435 WARN - Exception thrown
java.util.concurrent.ExecutionException: org.openqa.selenium.WebDriverException: java.lang.reflect.InvocationTargetException
Build info: version: '3.0.0-beta4', revision: '3169782', time: '2016-09-29 10:29:23 -0700'
System info: host: 'Mahadi.local', ip: '192.168.1.9', <a href="http://os.name" rel="nofollow" target="_blank" onmousedown="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Fos.name\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNEBq5pahnbxzpNVLfaFeTDcQCtrYg&#39;;return true;" onclick="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Fos.name\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNEBq5pahnbxzpNVLfaFeTDcQCtrYg&#39;;return true;">os.name: 'Mac OS X', os.arch: 'x86_64', os.version: '10.11.6', java.version: '1.8.0_91'
Driver info: driver.version: unknown
        at java.util.concurrent.FutureTask.report(FutureTask.java:122)
        at java.util.concurrent.FutureTask.get(FutureTask.java:192)
.
.
.
       at java.lang.reflect.Constructor.newInstance(Constructor.java:423)
        at org.openqa.selenium.remote.server.FirefoxDriverProvider.callConstructor(FirefoxDriverProvider.java:86)
        ... 9 more
Caused by: java.lang.IllegalStateException: The path to the driver executable must be set by the webdriver.gecko.driver system property; for more information, see <a href="https://github.com/mozilla/geckodriver" rel="nofollow" target="_blank" onmousedown="this.href=&#39;https://www.google.com/url?q\x3dhttps%3A%2F%2Fgithub.com%2Fmozilla%2Fgeckodriver\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNGS-Jw-ENYGAGzH38eboe42n3xcXA&#39;;return true;" onclick="this.href=&#39;https://www.google.com/url?q\x3dhttps%3A%2F%2Fgithub.com%2Fmozilla%2Fgeckodriver\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNGS-Jw-ENYGAGzH38eboe42n3xcXA&#39;;return true;">https://github.com/mozilla/geckodriver. The latest version can be downloaded from <a href="https://github.com/mozilla/geckodriver/releases" rel="nofollow" target="_blank" onmousedown="this.href=&#39;https://www.google.com/url?q\x3dhttps%3A%2F%2Fgithub.com%2Fmozilla%2Fgeckodriver%2Freleases\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNFId2hfAooV5I0Sr5S20Swp5GRNug&#39;;return true;" onclick="this.href=&#39;https://www.google.com/url?q\x3dhttps%3A%2F%2Fgithub.com%2Fmozilla%2Fgeckodriver%2Freleases\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNFId2hfAooV5I0Sr5S20Swp5GRNug&#39;;return true;">https://github.com/mozilla/geckodriver/releases


I was double checked geckodriver path, its there. Its a blocker for me now to proceed. It would be great if anyway can help whats going wrong. 

Thanks in advanced.

Best Regards,
Mahadi Hasan

--
You received this message because you are subscribed to the Google Groups "Selenium Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/selenium-users/3a599420-3b0e-40d3-bf01-bc604d6aaca4%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Unable to launch firefox by using RemoteWebDriver+geckodriver+selenium 3

Ullas Krishnan
In reply to this post by Rupesh Trivedi
If this is not yet resolved, could you share the log details . The suggestion given by Ky works for me .

On Wednesday, February 15, 2017 at 12:42:25 PM UTC+5:30, Rupesh Trivedi wrote:
I'm still having same issue, tried multiple solutions from google not sure whats wrong, can you please help?

On Friday, September 30, 2016 at 6:27:17 PM UTC-4, mahadi wrote:
Hello all,

I am using:
- selenium-server-standalone-3.0.0-beta4.jar
- geckodriver (v0.10.0)
- Firefox 49.0
- Mac - OSX EI Captain
- JRE 1.8

Code:

System.setProperty("webdriver.gecko.driver", "/Users/mahadihasan/Downloads/geckodriver");

DesiredCapabilities capabilities = DesiredCapabilities.firefox();

capabilities.setCapability("marionette", true);


WebDriver driver = new RemoteWebDriver(new URL("<a href="http://192.168.1.1:4444/wd/hub" rel="nofollow" target="_blank" onmousedown="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2F192.168.1.1%3A4444%2Fwd%2Fhub\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNEYYTBGUCj1tM07mSQCHnVMOZPx9w&#39;;return true;" onclick="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2F192.168.1.1%3A4444%2Fwd%2Fhub\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNEYYTBGUCj1tM07mSQCHnVMOZPx9w&#39;;return true;">http://192.168.1.1:4444/wd/hub"), capabilities);

driver.get("<a href="http://google.com" rel="nofollow" target="_blank" onmousedown="this.href=&#39;http://google.com&#39;;return true;" onclick="this.href=&#39;http://google.com&#39;;return true;">http://google.com");


But the test failed launch Firefox browser:

Exception in thread "main" org.openqa.selenium.SessionNotCreatedException: Unable to create new remote session. desired capabilities = Capabilities [{marionette=true, browserName=firefox, version=, platform=ANY}], required capabilities = null

Build info: version: '3.0.0-beta4', revision: '3169782', time: '2016-09-29 10:30:04 -0700'

System info: host: 'Mahadi.local', ip: '192.168.1.9', os.name: 'Mac OS X', os.arch: 'x86_64', os.version: '10.11.6', java.version: '1.8.0_91'

Driver info: driver.version: RemoteWebDriver

at org.openqa.selenium.remote.ProtocolHandshake.createSession(ProtocolHandshake.java:80)
at org
.openqa.selenium.remote.HttpCommandExecutor.execute(HttpCommandExecutor.java:141)

at org.openqa.selenium.remote.RemoteWebDriver.execute(RemoteWebDriver.java:602)

at org.openqa.selenium.remote.RemoteWebDriver.startSession(RemoteWebDriver.java:242)

at org.openqa.selenium.remote.RemoteWebDriver.<init>(RemoteWebDriver.java:129)

at org.openqa.selenium.remote.RemoteWebDriver.<init>(RemoteWebDriver.java:156)



Selenium server log:
00:20:27.063 INFO - Executing: [new session: Capabilities [{marionette=true, browserName=firefox, version=, platform=ANY}]])
00:20:27.078 INFO - Creating a new session for Capabilities [{marionette=true, browserName=firefox, version=, platform=ANY}]
00:20:27.435 WARN - Exception thrown
java.util.concurrent.ExecutionException: org.openqa.selenium.WebDriverException: java.lang.reflect.InvocationTargetException
Build info: version: '3.0.0-beta4', revision: '3169782', time: '2016-09-29 10:29:23 -0700'
System info: host: 'Mahadi.local', ip: '192.168.1.9', <a href="http://os.name" rel="nofollow" target="_blank" onmousedown="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Fos.name\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNEBq5pahnbxzpNVLfaFeTDcQCtrYg&#39;;return true;" onclick="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Fos.name\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNEBq5pahnbxzpNVLfaFeTDcQCtrYg&#39;;return true;">os.name: 'Mac OS X', os.arch: 'x86_64', os.version: '10.11.6', java.version: '1.8.0_91'
Driver info: driver.version: unknown
        at java.util.concurrent.FutureTask.report(FutureTask.java:122)
        at java.util.concurrent.FutureTask.get(FutureTask.java:192)
.
.
.
       at java.lang.reflect.Constructor.newInstance(Constructor.java:423)
        at org.openqa.selenium.remote.server.FirefoxDriverProvider.callConstructor(FirefoxDriverProvider.java:86)
        ... 9 more
Caused by: java.lang.IllegalStateException: The path to the driver executable must be set by the webdriver.gecko.driver system property; for more information, see <a href="https://github.com/mozilla/geckodriver" rel="nofollow" target="_blank" onmousedown="this.href=&#39;https://www.google.com/url?q\x3dhttps%3A%2F%2Fgithub.com%2Fmozilla%2Fgeckodriver\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNGS-Jw-ENYGAGzH38eboe42n3xcXA&#39;;return true;" onclick="this.href=&#39;https://www.google.com/url?q\x3dhttps%3A%2F%2Fgithub.com%2Fmozilla%2Fgeckodriver\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNGS-Jw-ENYGAGzH38eboe42n3xcXA&#39;;return true;">https://github.com/mozilla/geckodriver. The latest version can be downloaded from <a href="https://github.com/mozilla/geckodriver/releases" rel="nofollow" target="_blank" onmousedown="this.href=&#39;https://www.google.com/url?q\x3dhttps%3A%2F%2Fgithub.com%2Fmozilla%2Fgeckodriver%2Freleases\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNFId2hfAooV5I0Sr5S20Swp5GRNug&#39;;return true;" onclick="this.href=&#39;https://www.google.com/url?q\x3dhttps%3A%2F%2Fgithub.com%2Fmozilla%2Fgeckodriver%2Freleases\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNFId2hfAooV5I0Sr5S20Swp5GRNug&#39;;return true;">https://github.com/mozilla/geckodriver/releases


I was double checked geckodriver path, its there. Its a blocker for me now to proceed. It would be great if anyway can help whats going wrong. 

Thanks in advanced.

Best Regards,
Mahadi Hasan

--
You received this message because you are subscribed to the Google Groups "Selenium Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/selenium-users/4b704c8c-8c45-417b-9269-7d31e42ede88%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Unable to launch firefox by using RemoteWebDriver+geckodriver+selenium 3

Andreas Tolfsen
In reply to this post by Ramesh P-2
Also sprach Ramesh P <[hidden email]>:

> I am unable to bypass the SSL Certification using GECKODriver.
> Kindly Help
> FF-58
> Selenium standalone server 3.0.1
> Geckodriver 0.11

Firefox 58 hasn’t shipped yet, so I’m a bit surprised you’re using
that.  Ensure you’re using the latest Firefox nightly, Selenium
3.3.1 or newer, and geckodriver 0.15.0.

We recently made some backwards incompatible changes to geckodriver
in order to conform with the W3C WebDriver standard, causing earlier
versions of Selenium to break.

Once you had the right versions of the software, all you need to do
is to pass an additional capability, acceptInsecureCerts, set to
true, like this:

        {"acceptInsecureCerts": true}

--
You received this message because you are subscribed to the Google Groups "Selenium Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/selenium-users/1490266357.13325.14.camel%40mozilla.com.
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Unable to launch firefox by using RemoteWebDriver+geckodriver+selenium 3

Jayakrishnan Nair
hi,
   I am also facing similar issue , with combination Firefox 53+latest Gecko driver+selenium3.4. I have suspected my DesiredCapability object has some parameter missing.


    static RemoteWebDriver createWebDiverInstance(Map<String,String> Configdata,DesiredCapabilities cap){
          RemoteWebDriver driver =null;
          String client= (String)Configdata.get("browser");
             if(client.equals("firefox")){
                System.setProperty("webdriver.gecko.driver","D:\\JavaSeleniumSetup\\geckodriver.exe");
               
                  FirefoxProfile profile= new FirefoxProfile();
                 try {
                      Firebug.configure(new File("D:\\old_machine\\firfoxext"), profile);
                 
                  } catch (IOException e) {
                      // TODO Auto-generated catch block
                      e.printStackTrace();
                  }
                 FireFoxBrowserProfile.setAutomaticDownloadProfile(profile, (String)Configdata.get("downloadDir"));
                 FireFoxBrowserProfile.setProxyProfile(profile, (String)Configdata.get("host"),Integer.parseInt(Configdata.get("portnumber")));
                 cap.setCapability(FirefoxDriver.PROFILE, profile);
                 cap.setCapability("marionette", true);
                 System.out.println(Configdata.get("grid"));
                 try {
                    driver  =  new RemoteWebDriver(new URL(Configdata.get("grid")), cap);
                      
                } catch (MalformedURLException e) {
                    // TODO Auto-generated catch block
                    e.printStackTrace();
                }
                 driver.manage().window().maximize();
                 return driver;       
             }
       
        return null;
         
    }
   

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: 'IND-JNAIR', ip: '10.22.183.35', os.name: 'Windows 7', os.arch: 'x86', os.version: '6.1', java.version: '1.8.0_121'
Driver info: driver.version: FirefoxDriver
remote stacktrace: stack backtrace:
   0:           0x489f6f - <no info>
   1:           0x48ad59 - <no info>
   2:           0x43a15d - <no info>
   3:           0x4474c9 - <no info>
   4:           0x445208 - <no info>
   5:           0x41ddb1 - <no info>
   6:           0x4091c7 - <no info>
   7:           0x6bc939 - <no info>
   8:           0x415a19 - <no info>
   9:           0x6b6e43 - <no info>
  10:         0x76e759cd - BaseThreadInitThunk
Command duration or timeout: 21.58 seconds
Build info: version: '2.53.1', revision: 'a36b8b1', time: '2016-06-30 17:37:03'
System info: host: 'IND-JNair', ip: '10.22.183.35', os.name: 'Windows 7', os.arch: 'amd64', os.version: '6.1', java.version: '1.8.0_51'
Driver info: org.openqa.selenium.remote.RemoteWebDriver
    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:422)
    at org.openqa.selenium.remote.ErrorHandler.createThrowable(ErrorHandler.java:206)
    at org.openqa.selenium.remote.ErrorHandler.throwIfResponseFailed(ErrorHandler.java:158)
    at org.openqa.selenium.remote.RemoteWebDriver.execute(RemoteWebDriver.java:678)
    at org.openqa.selenium.remote.RemoteWebDriver.startSession(RemoteWebDriver.java:249)
    at org.openqa.selenium.remote.RemoteWebDriver.<init>(RemoteWebDriver.java:131)
    at org.openqa.selenium.remote.RemoteWebDriver.<init>(RemoteWebDriver.java:158)
    at com.saba.ras.selenium.SabaWebDriverFactory.createWebDiverInstance(SabaWebDriverFactory.java:40)
    at com.saba.ras.selenium.SabaSelenium.beforestart(SabaSelenium.java:74)
    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:497)
    at org.testng.internal.MethodInvocationHelper.invokeMethod(MethodInvocationHelper.java:85)
    at org.testng.internal.Invoker.invokeConfigurationMethod(Invoker.java:510)
    at org.testng.internal.Invoker.invokeConfigurations(Invoker.java:211)
    at org.testng.internal.Invoker.invokeConfigurations(Invoker.java:138)
    at org.testng.SuiteRunner.privateRun(SuiteRunner.java:298)
    at org.testng.SuiteRunner.run(SuiteRunner.java:261)
    at org.testng.SuiteRunnerWorker.runSuite(SuiteRunnerWorker.java:52)
    at org.testng.SuiteRunnerWorker.run(SuiteRunnerWorker.java:86)
    at org.testng.TestNG.runSuitesSequentially(TestNG.java:1215)
    at org.testng.TestNG.runSuitesLocally(TestNG.java:1140)
    at org.testng.TestNG.run(TestNG.java:1048)
    at com.saba.ras.executors.AdminCourseDashboardExecutor.run(AdminCourseDashboardExecutor.java:50)
    at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
    at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:308)
    at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$301(ScheduledThreadPoolExecutor.java:180)
    at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:294)
    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)

--
You received this message because you are subscribed to the Google Groups "Selenium Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/selenium-users/ca29c612-b0c4-42a9-987c-09c7e6241c35%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Unable to launch firefox by using RemoteWebDriver+geckodriver+selenium 3

ANKIT SINGH-3
Use firefox 51.0 with updated geckodriver.
It will definitely work.
But still you may face certificate-issue, if your URL need to handle certificate.
Regards,
Ankit Singh

On Thursday, 8 June 2017 11:33:49 UTC+5:30, Jayakrishnan Nair wrote:
hi,
   I am also facing similar issue , with combination Firefox 53+latest Gecko driver+selenium3.4. I have suspected my DesiredCapability object has some parameter missing.


    static RemoteWebDriver createWebDiverInstance(Map<String,String> Configdata,DesiredCapabilities cap){
          RemoteWebDriver driver =null;
          String client= (String)Configdata.get("browser");
             if(client.equals("firefox")){
                System.setProperty("webdriver.gecko.driver","D:\\JavaSeleniumSetup\\geckodriver.exe");
               
                  FirefoxProfile profile= new FirefoxProfile();
                 try {
                      Firebug.configure(new File("D:\\old_machine\\firfoxext"), profile);
                 
                  } catch (IOException e) {
                      // TODO Auto-generated catch block
                      e.printStackTrace();
                  }
                 FireFoxBrowserProfile.setAutomaticDownloadProfile(profile, (String)Configdata.get("downloadDir"));
                 FireFoxBrowserProfile.setProxyProfile(profile, (String)Configdata.get("host"),Integer.parseInt(Configdata.get("portnumber")));
                 cap.setCapability(FirefoxDriver.PROFILE, profile);
                 cap.setCapability("marionette", true);
                 System.out.println(Configdata.get("grid"));
                 try {
                    driver  =  new RemoteWebDriver(new URL(Configdata.get("grid")), cap);
                      
                } catch (MalformedURLException e) {
                    // TODO Auto-generated catch block
                    e.printStackTrace();
                }
                 driver.manage().window().maximize();
                 return driver;       
             }
       
        return null;
         
    }
   

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: 'IND-JNAIR', ip: '10.22.183.35', <a href="http://os.name" target="_blank" rel="nofollow" onmousedown="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Fos.name\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNEBq5pahnbxzpNVLfaFeTDcQCtrYg&#39;;return true;" onclick="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Fos.name\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNEBq5pahnbxzpNVLfaFeTDcQCtrYg&#39;;return true;">os.name: 'Windows 7', os.arch: 'x86', os.version: '6.1', java.version: '1.8.0_121'
Driver info: driver.version: FirefoxDriver
remote stacktrace: stack backtrace:
   0:           0x489f6f - <no info>
   1:           0x48ad59 - <no info>
   2:           0x43a15d - <no info>
   3:           0x4474c9 - <no info>
   4:           0x445208 - <no info>
   5:           0x41ddb1 - <no info>
   6:           0x4091c7 - <no info>
   7:           0x6bc939 - <no info>
   8:           0x415a19 - <no info>
   9:           0x6b6e43 - <no info>
  10:         0x76e759cd - BaseThreadInitThunk
Command duration or timeout: 21.58 seconds
Build info: version: '2.53.1', revision: 'a36b8b1', time: '2016-06-30 17:37:03'
System info: host: 'IND-JNair', ip: '10.22.183.35', <a href="http://os.name" target="_blank" rel="nofollow" onmousedown="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Fos.name\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNEBq5pahnbxzpNVLfaFeTDcQCtrYg&#39;;return true;" onclick="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Fos.name\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNEBq5pahnbxzpNVLfaFeTDcQCtrYg&#39;;return true;">os.name: 'Windows 7', os.arch: 'amd64', os.version: '6.1', java.version: '1.8.0_51'
Driver info: org.openqa.selenium.remote.RemoteWebDriver
    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:422)
    at org.openqa.selenium.remote.ErrorHandler.createThrowable(ErrorHandler.java:206)
    at org.openqa.selenium.remote.ErrorHandler.throwIfResponseFailed(ErrorHandler.java:158)
    at org.openqa.selenium.remote.RemoteWebDriver.execute(RemoteWebDriver.java:678)
    at org.openqa.selenium.remote.RemoteWebDriver.startSession(RemoteWebDriver.java:249)
    at org.openqa.selenium.remote.RemoteWebDriver.<init>(RemoteWebDriver.java:131)
    at org.openqa.selenium.remote.RemoteWebDriver.<init>(RemoteWebDriver.java:158)
    at com.saba.ras.selenium.SabaWebDriverFactory.createWebDiverInstance(SabaWebDriverFactory.java:40)
    at com.saba.ras.selenium.SabaSelenium.beforestart(SabaSelenium.java:74)
    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:497)
    at org.testng.internal.MethodInvocationHelper.invokeMethod(MethodInvocationHelper.java:85)
    at org.testng.internal.Invoker.invokeConfigurationMethod(Invoker.java:510)
    at org.testng.internal.Invoker.invokeConfigurations(Invoker.java:211)
    at org.testng.internal.Invoker.invokeConfigurations(Invoker.java:138)
    at org.testng.SuiteRunner.privateRun(SuiteRunner.java:298)
    at org.testng.SuiteRunner.run(SuiteRunner.java:261)
    at org.testng.SuiteRunnerWorker.runSuite(SuiteRunnerWorker.java:52)
    at org.testng.SuiteRunnerWorker.run(SuiteRunnerWorker.java:86)
    at org.testng.TestNG.runSuitesSequentially(TestNG.java:1215)
    at org.testng.TestNG.runSuitesLocally(TestNG.java:1140)
    at org.testng.TestNG.run(TestNG.java:1048)
    at com.saba.ras.executors.AdminCourseDashboardExecutor.run(AdminCourseDashboardExecutor.java:50)
    at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
    at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:308)
    at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$301(ScheduledThreadPoolExecutor.java:180)
    at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:294)
    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)

--
You received this message because you are subscribed to the Google Groups "Selenium Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/selenium-users/ecc5b007-1669-4f8b-8e4b-b3cd68798c9e%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Loading...