Questions tagged [selenium-grid2]

Selenium-Grid allows you run Selenium tests on different machines, running various operating systems, against different browsers in parallel. It allows for running your tests in a distributed test execution environment.

Selenium-Grid allows you run Selenium tests on different machines, running various operating systems, against different browsers in parallel. It allows for running your tests in a distributed test execution environment.

Selenium-Grid 2.0 is the latest release. It is quite different from version 1 of Selenium-Grid. In 2.0 Selenium-Grid was merged with the Selenium-RC server. Now, you only need to download a single .jar file to get the remote Selenium-RC-Server and Selenium-Grid all in one package.

Grid allows you to :

  • scale by distributing tests on several machines (parallel execution )
  • manage multiple environments from a central point, making it easy to run the tests against a vast combination of browsers / OS.
  • minimize the maintenance time for the grid by allowing you to implement custom hooks to leverage virtual infrastructure for instance.

Related tags :

170 questions
1
vote
1 answer

Selenium Grid - Cannot Find Capabilities When Specifying IE Version

I'm running into an issue when using Selenium Grid and trying to register a node with a specific version of IE and then call the Grid Hub for an instance of that browser. My setup: Selenium 3.0.1 with C# bindings One class library defining my page…
1
vote
2 answers

Execute batch file on Node machine - Selenium Grid

Is there a way to execute a batch file that lives on a remote Node machine using Selenium Grid to change the hosts file? VM1 contains the code and acts as the Hub VM2 runs a Chrome Node VM3 runs a Firefox Node VM4 runs an IE Node A set of batch…
Dustin N.
  • 785
  • 1
  • 14
  • 32
1
vote
1 answer

PhantomJS register with Selenium Grid

I need assistance on registering PhantomJS with Selenium Grid. Based on some approaches I've seen online I implemented it this way: Grid register java -jar selenium-server-standalone-3.0.0-beta2.jar -role hub -port 4444 PhantomJS phantomjs.exe…
ken4ward
  • 2,246
  • 5
  • 49
  • 89
1
vote
1 answer

Run protractor test script in multiple nodes (os platform) via selenium grid

I am currently trying to run Protractor test script using selenium grid. My goal is to distribute Protractor test scripts to multiple nodes running under different flavor of OS. It should also run different parts of test script in parallel to save…
1
vote
1 answer

HOW this works? Running multiple Parallel test runs on single hub

We understand that, Consider: Single hub with Node (5 Sessions). When we run tests suite(with 25 tests) then those tests will run in parallel 5 at a time. when nodes get free next test will be picked up. But how this works: Consider: Single hub…
1
vote
1 answer

Selenium Grid with Docker set Language for Firefox

I hope you can help me. Selenium is running headless with Docker. I am able to access the Webserver from my Grid, opening google and doing Selenium Teststeps is no problem. Now I want to test my application with a specific locale. @Before …
Simon
  • 605
  • 1
  • 6
  • 18
1
vote
3 answers

Selenium Grid maxSession ignored

I can't seem to get Selenium Grid2 to abide by the maxSession parameter, no matter whether I set it as a command line option or in a JSON config, whether I set it on the hub or node or both. Grid ignores it completely. Before I open a bug ticket…
Sophist
  • 33
  • 6
1
vote
2 answers

SeleniumGrid: How many instances should I run on single machine

I have windows 7, 2 processors 64 bit, 8 GB Ram (I have six such nodes) I am planning to open 15-20 browsers on one machine. Can someone please tell me how many instance of a browsers should I open in one node? Nothing else is running apart from OS…
Vinaykumar Patel
  • 864
  • 11
  • 26
1
vote
3 answers

Running Parallel Tests using Selenium WebDriver, Selenium Grid and testNG

This is my very first post here in SO; I am a newbie Selenium User with beginner skill in Java. To give you a background of our work; we are using Page Object Model. All of our tests uses a single DataProvider method that fetches its data from an…
MarkM
  • 43
  • 1
  • 7
1
vote
1 answer

Selenium grid keeps session alive after test has been completed and browser closed

I am new to automated testing and selenium grid. I have been able to start my hub and create nodes in which I run my tests, but, I am hitting a wall here. After I run a test and the browser closes it keeps the session open thus making my next test…
1
vote
1 answer

Selenium GRID 2 + NUnit 3 options to run tests in parallel

I decided to switch from current solution (using modified NUnit by our team some years ago NDistribUnit which run tests on VirtualMachines and then gather results on hub server) to Selenium Grid 2. Option with ParallelizableAttribute was…
1
vote
0 answers

Chrome or Firefox fails to start on selenium node machine if the node is started from a shell script at the startup

I have a shell script to register the node machine to hub at startup. The script contains: java -jar ~/selenium/selenium-server.jar -role node -hub http://HUB_IP:4444/grid/register -browser…
sunil
  • 31
  • 4
1
vote
1 answer

Does Selenium Grid handsover the Node after connection?

As shown in this diag: All the connections from the Selenium Tests(client) should go directly to Selenium HUB, then it will forward the request to an appropriate Node, and return the response. But what i am observing, that after finding an…
1
vote
2 answers

getting a capybara session for a remote browser

I cannot find anything that shows the right way to pass in capabilities and create a remote session. something like the below Capybara.default_driver = :Selenium @session = Capybara::Session.new :selenium Could anyone point me in the right…
hhcib
  • 193
  • 2
  • 2
  • 15
1
vote
0 answers

Setup test environment using Selendroid, Selenium Grid in Android Studio

Just a quick one, I want to setup test environment for mobile testing using Selenium Grid, Selendroid in the android Studio environment. Does anyone have detail tutorial, video or a presentation that can serve for easy learning?