Selenium server raise error : does not match current platform LINUX Selenium server raise error : does not match current platform LINUX selenium selenium

Selenium server raise error : does not match current platform LINUX


Its no problem at all.Please find explanation with an example and appropriate terminal statement which needs to be executed:Requirement:needs to run a test or test suite on machine A and machine B.

ex: -I have machine A (IP : 192.168.233.155) and installed selenium-server-xyz-version.jar.

1.To launch Hub (terminal statement): java -jar selenium-server-standalone-2.47.1.jar -role hub

2.To run tests we need to register the node .

  • To run test on local machine A :

java -jar selenium-server-standalone-2.47.1.jar -role node -hub
http://localhost:4444/grid/register -browser "browserName=firefox,version=10.0.12,platform=LINUX"

NOTE: you can change browser parameter as according to need of your test

  • To run test or test suite on remote machine B; we need to register the node from the terminal of machine B:

java -jar selenium-server-standalone-2.47.1.jar -role node -hub
http://192.168.233.155:4444/grid/register -browser
"browserName=firefox,version=10.0.12,platform=LINUX"

Why does it have Internet Explorer settings if I am on ubuntu 14.04 and I am using firefox and chrome?

Ans: Terminal output:

INFO - Driver provider org.openqa.selenium.ie.InternetExplorerDriver
registration is skipped:registration capabilities Capabilities[{platform=WINDOWS, ensureCleanSession=true, browserName=internet explorer, version=}] does not match the current platform LINUX

the above lines are just an information that check is done against WINDOWS and existing platform is LINUX

even after mentioning the -browser parameters you can still observe the same. Thus all we need to bother about is providing -browser "browserName=firefox,version=10.0.12,platform=LINUX" in terminal statement.

Multiple browser settings can be registered:

ex:

$java -jar selenium-server-standalone-2.47.1.jar -role node -hub http://192.168.233.155:4444/grid/register -browser "browserName=firefox,version=10.0.12,platform=LINUX" -browser "browserName=chrome,platform=MAC" -browser "browserName=ABC,platform=XYZ" -browser ........

Finally [some platform reference] http://code.google.com/p/selenium/wiki/GridPlatforms