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
23
votes
2 answers

Can Selenium use multi threading in one browser?

I want to test a web in multi threading but when I open too many chromedrivers they use too much memory. Can I use multi threading in one browser?
Roy
  • 259
  • 1
  • 2
  • 5
12
votes
2 answers

How to set the firefox profile at the node end in remote webdriver/grid configuration

It is always suggested to set the firefox profile in DesiredCapabilities and pass that through the wire ,where the hub is running . Like below DesiredCapabilities caps = DesiredCapabilities.firefox(); FirefoxProfile profile=new…
Som
  • 4,300
  • 4
  • 25
  • 31
11
votes
0 answers

geckodriver: how to specify "moz:firefoxOptions" on node.config for selenium grid

I am running tests on selenium grid using nunit C# with: selenium-standalone-server: v3.3.1 selenium webdriver: v3.3 geckodriver: 0.15 firefox: v52 Firefox is not installed on the default location and so I get following exception on running…
H.D.
  • 405
  • 4
  • 18
9
votes
1 answer

Remote webdriver - Passing firefox profile with Rest Client Extension (add-on)

Currently I am able to send a firefox profile over a RemoteWebDriver, but I am not able to send the RestCLient extension over the profile. I require a certain REST client extension(firefox add-on) to be available for my test case execution. If I…
LearningSnippet
  • 101
  • 1
  • 1
  • 5
8
votes
6 answers

Selenium grid with Chrome driver (WebDriverException: The path to the driver executable must be set by the webdriver.chrome.driver system property)

I am trying to get my Selenium Grid running on Chrome driver. At first I started hub and node: java -jar selenium-server-standalone-2.45.0.jar -role hub java -jar selenium-server-standalone-2.45.0.jar -role node -hub…
7
votes
1 answer

How to terminate session in Selenium Grid(Extras)

How to terminate session in Selenium Grid? My problem is that if my test fail hub still keep session for this test and I can't run another test (it run but fail because can't get free node, because it is registered in hub). I have found this How to…
slovvic
  • 317
  • 2
  • 4
  • 13
7
votes
2 answers

Selenium grid is providing exception :PROXY_REREGISTRATION

I am now able to run selenium grid 2 successfully, thanks to you guys. Now I am facing a new issue, i.e. : Session [xxxxx] was terminated due to PROXY_REREGISTRATION according to what i read it means that the node was disconnected and was retrying…
LeonarD
  • 159
  • 2
  • 4
  • 10
6
votes
0 answers

How to run Watir-Webdriver tests in Selenium Grid2

I might be missing something obvious but here is what i have setup: CentOs 6.4 Headless VM ( running Selenium hub ) CentOs 6.4 Headless VM ( running node ) (same VM as # 1) Windows Xp Pro VM ( Running node ) CentOs 6.4 Headless VM ( Running Watir…
kamal
  • 9,015
  • 28
  • 92
  • 148
4
votes
2 answers

Using Docker, with Selenium and Pytest to run parallel tests

I'm trying to use these all things together to run parallel tests in a headless chrome: Docker, Selenium, Pytest However, I'm wondering where it makes sense to run the parallel part of the system? Docker can do this (using selenium grid). Both…
Ke.
  • 2,224
  • 5
  • 32
  • 70
4
votes
0 answers

How does the Selenium Grid2 load balancing method works?

I'm using Selenium Grid2 for executing Selenium Scripts remotely. Is anyone aware if the Grid2 Hub actually load-balance the workload? For instance... I have a Grid Hub with 2 registered Nodes, both registered with the same capacities (5 firefox, 5…
adids
  • 137
  • 9
3
votes
1 answer

How integrate Selenium Grid 2 With Hudson/Jenkins?

I would like to know how to integrate selenium Grid 2 and Jenkins on Windows or Linux both are fine with me. (I am able to run Selenium Grid 2 alone successfully on the same machine and on different machines using TestNG and Java) Should we use Ant…
3
votes
2 answers

Selenium Grid 2 or Hudson w/ slave nodes?

I am able to get my tests running on Hudson CI but have been interested to see if there's any clear performance difference between Selenium Grid 2 vs Hudson CI running slaves nodes? I have yet to get xvfb working with Selenium Grid 2 while Hudson CI…
KJW
  • 14,248
  • 44
  • 128
  • 236
3
votes
1 answer

How to run Selenium-Grid on CloudFoundry?

Did anyone run Selenium-Grid on CloudFoundry with routing provided by Gorouter? According to the "Selenium-Grid Documentation" we can pass the hub address to a node instance like that: java -jar selenium-server-standalone.jar \ -role node \ …
kinjelom
  • 4,967
  • 1
  • 31
  • 55
3
votes
1 answer

Selenium best way to chrome headless parallel instances python

I'm getting really confused with python and selenium. I've set up both chrome and Phantomjs with selenium on mac and it's working ok. However, I can only run phantomjs as headless, and it's getting really frustrating having to code things twice (for…
Ke.
  • 2,224
  • 5
  • 32
  • 70
3
votes
1 answer

How do I get my Selenium Grid Hub log

I have a selenium grid2 set up on an AWS instance, and I was wondering if there's a way I could view the logs on my local machine? I understand I can visit: http://MyServerAddress/grid/console and view all of the nodes but I want the actual log. Its…
1
2 3
11 12