I get an exception
An exception to the topic "main" org.openqa.selenium.SessionNotCreatedException: it is not possible to create a new remote session; desired features = capabilities [{marionette = true, browserName = firefox, version = 48.0.1, platform = ANY}], required abilities = Capabilities [ {}] 'when trying to run a selenium script in a remote web driver.
The hub and node are configured correctly and can interact with each other.
- Selenium Web Driver: 3.0
- Platform: Windows Server 2012 R2.
- Firefox Version: 48.0.1
Code used in my script:
System.setProperty("webdriver.gecko.driver", "mypath/geckodriver.exe"); DesiredCapabilities capabilities = DesiredCapabilities.firefox(); capabilities.setCapability("marionette", true); capabilities.setBrowserName("firefox"); capabilities.setPlatform(Platform.ANY); RemoteWebDriver driver =new RemoteWebDriver(new URL("http://ipofthenode:4444/wd/hub"), capabilities); driver.get("http://stackoverflow.com"); System.out.println("executed");
Detailed stack trace:
an 19, 2017 6:07:36 org.openqa.selenium.remote.ProtocolHandshake createSession INFO: Attempting a bi-dialect session, assuming the Bed Act is valid at the remote end on January 19, 2017 18:07:37 org.openqa. selenium.remote.ProtocolHandshake createSession INFO: Rollback to the original OSS JSON protocol. January 19, 2017 6:07:37 PM org.openqa.selenium.remote.ProtocolHandshake createSession INFO: Rollback to direct connection to the remote end of W3C Exception in thread "main" org.openqa.selenium.SessionNotCreatedException: cannot create a new remote session . desired features = features [{marionette = true, browserName = firefox, version = 48.0.1, platform = ANY}], required features = features [{}] Assembly information: version: '3.0.0', revision: '350cf60 ', time:' 2016-10-13 10:48:16 -0700 'System information: host:' Hostname ', ip:' IP ', os.name:' Windows Server 2012 R2 ', os.arch:' amd64 ', os.version:' 6.3 ', java.version:' 1.8.0_101 'Driver information: driver.version: RemoteWebDriver in org.openqa.selenium.remote.ProtocolHandshake.createSession (ProtocolHandshake.java:91) in org .openqa.selenium.remote.HttpCommandExecutor.execute (HttpCommandExecutor.java:141) in org.openqa.selenium.remote.RemoteWebDriver.execute (RemoteWebDriver.java:601) in org.openqa.seriverWebebote.ebrioteWeb.Dote .java: 241) in org.openqa.sele nium.remote.RemoteWebDriver. (RemoteWebDriver.java:128) in org.openqa.selenium.remote.RemoteWebDriver. (RemoteWebDriver.java:155) at demo.Grid.main (Grid.java:26)
java selenium selenium-webdriver selenium-grid
Sona shetty
source share