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");
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)
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 thrownjava.util.concurrent.ExecutionException: org.openqa.selenium.WebDriverException: java.lang.reflect.InvocationTargetExceptionBuild 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 moreCaused 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
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
--
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 selenium-users+unsubscribe@googlegroups.com.
To post to this group, send email to selenium-users@googlegroups.com.
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.
1481656855494 webdriver::server DEBUG Returning body {"error":"unknown command","message":"POST /wd/hub/session did not match a known command"}
Ff67.0.1
Sell 3.141.59
Gecko 0.24
Are they all compatible???