Questions tagged [selenium-grid]

Selenium-Grid allows you run your tests on different machines against different browsers in parallel. That is, running multiple tests at the same time against different machines running different browsers and operating systems. Essentially, Selenium-Grid support distributed test execution. It allows for running your tests in a *distributed test execution environment*.

Selenium Grid is a component of the Selenium project that allows you run your tests on different machines against different browsers in parallel. That is, running multiple tests at the same time against different machines running different browsers and operating systems. The tests can be run on any number of machines at the same time.

It provides both environment management and resource allocation as it dispatches your tests against nodes in the grid. The environment management allows you to exert finer-grained control over the environment executed in than Selenium Server provides itself. For example, you can target your tests at specific browser versions or particular platforms.

Selenium Grid consist of HUB and Node. Selenium stand alone server jar executable can work as both Node and Hub. In order to configure Grid there must be a single HUB (selenium server running as HUB), and one or more Nodes (selenium server running as Node) attached to the HUB.

PROS AND CONS

Selenium Grid isn't a silver bullet. It solves a subset of common delegation and distribution problems, but will for example not manage your infrastructure and might not suite your specific needs.

Pros

  1. Scale. Scale by distributing tests on several machines using parallel execution.
  2. Central. Manage multiple environments from a central point, making it easy to run the tests against a large combination of browsers and operating systems.
  3. Minimize. Minimize the maintenance time for the grid by allowing you to implement custom hooks to leverage a virtual infrastructure of registered nodes.
  4. Cross-Platform. If your tests are running on one particular platform, by using a node on another platform you effectively have cross-platform testing.
  5. Smart. Grid can route commands to a certain version of a browser if you have two or more nodes registered, each pointing to a different version of the browser binary.

Cons

  1. Prompted input. You have no capabilities for user input if your tests want to prompt for user input whereas you would if your tests ran locally.
  2. Maintainability. You also need to maintain the health of other computer systems which run your nodes.
  3. Limited power. Certain third party libraries have limitations that prevent them from being used in conjunction with Grid.

References:

  1. Selenium Grid docs on seleniumhq.github.io
  2. Selenium Grid docs on seleniumhq.org
  3. Running Standalone Selenium Server form command line
  4. Selenium to Start Hub Server and register Nodes with Hub
1873 questions
0
votes
1 answer

Test website on android Mobile emulator using Selenium and c#

I would like to run some selenium c# tests via an android emulator. How can I do that? Do I need another third Party ? EG Selendroid/ Can it run direct? Is there any tutorial or links that takes you through the process? many thanks
developer9969
  • 4,628
  • 6
  • 40
  • 88
0
votes
2 answers

Dropdown not working in selenium java

I want to click on the option which is displayed in the list of that particular option but I am not able to do so . Geographic group is the filter, besides that you will be able to see dropdown icon and after clicking on that icon I should be able…
whatsinthename
  • 1,828
  • 20
  • 59
0
votes
1 answer

Selenium Grid Java Client

I want to create dashboard for QA. It have feature to monitor selenium grid on it. is there any java client or something to get data or control the selenium grid through java code? example : to monitor which node is working to modify node (adding…
Hendrione
  • 225
  • 1
  • 5
  • 18
0
votes
2 answers

How to assign public port to port 5900 in docker-compose

I have below YAML file : seleniumhub: image: selenium/hub ports: - 4444:4444 firefoxnode: image: selenium/node-firefox-debug ports: - 4577 links: - seleniumhub:hub expose: - "5900" chromenode: image :…
0
votes
1 answer

Why doesnt my servlet show in Selenium Grid

I've made a servlet for selenium grid and from what I can see i've followed all of the information on the selenium (not much on there actually) but I still dont get it. Here is the code inside my servlet: package servletPackage; import…
Festivejelly
  • 670
  • 2
  • 12
  • 30
0
votes
2 answers

How to start Chrome (both normal & incognito modes) and open URL in remote PC (node) using Selenium Grid in Java?

I am trying Selenium Grid in Java and just want to start Chrome in both normal mode and incognito mode in remote PC (node) and open google.com I have setup the hub - node connection. I tried this code, but it seems to be wrong. Any guidance…
keylogger
  • 822
  • 3
  • 19
  • 39
0
votes
1 answer

Selenium Grid Node is repeatedly registering with the hub (Selenium 3.3)

I run this command on a virtual machine to register a node with my Selenium Grid hub: java -Dwebdriver.ie.driver=C:\IEDriverServer.exe -Dwebdriver.chrome.driver=C:\chromedriver.exe -Dwebdriver.gecko.driver=C:\geckodriver0-15-0.exe -jar…
0
votes
0 answers

How to Open two firefox based on firefox path in python selenium

I want to open Firefox version 32 and 50 on the same system using python selenium version 2.44. Based on firefox path I want to open firefox browser 32 for first run 50 for the second run. please, anyone can help on this.
Sriram Chowdary
  • 119
  • 1
  • 2
  • 6
0
votes
2 answers

How to solve org.openqa.selenium.SessionNotCreatedException selenium grid 3

I am using selenium 3.2.0 standalone, chrome latest version and chrome driver latest version which is giving not able to connect exemption on running. Issue is with chrome driver please help org.openqa.selenium.SessionNotCreatedException: my code…
0
votes
0 answers

Selenium Grid 3 node startup ignoring -nodeconfig node.json

I'm just setting up a new Selenium Grid, and have just one node to register to my hub at the moment. Both hub and node running on CentOS 7. I have two different versions of Firefox on my node, and no other browser, as I will be setting up…
HelenH
  • 55
  • 3
  • 8
0
votes
1 answer

table.findElements(By.tagName("td") failing in RemoteWebDriver/Internet Explorer

I have a series of Selenium tests that are ran remotely using Selenium Grid in internet Explorer. The tests are working fine until they get to this line: WebElement cart = driver.findElement(By.id("cartId"); List rows =…
kroe761
  • 3,296
  • 9
  • 52
  • 81
0
votes
0 answers

Chrome Node in Selenium/Docker keeps crashing

I have a CentOs virtual machine running a selenium chrome node in docker Static hostname: btpcentos1.kaiglan.com Icon name: computer-vm Chassis: vm Virtualization: vmware Operating System: CentOS Linux 7 (Core) CPE OS Name:…
0
votes
1 answer

headless browser test case failed - selemium grid

Selenium grid test case failed in headless browser mode only Normal Browser Mode [Test Success] selenium stand alone server : 3.0.1 Firefox : 38.0.1 ip : 192.168.1.40 Headless Browser Mode [Test Failed] selenium stand alone server : 3.0.1 Firefox…
Bilal Usean
  • 2,322
  • 3
  • 22
  • 45
0
votes
1 answer

Has anyone used the Java robot class to execute keystrokes using remoteWebDriver on Selenium grid?

I have a test case where I need to enter keystrokes into a windows dialog that pops up. I can successfully do this using the Java robot class to enter the desired keystrokes into the dialog when I run my tests locally. But when I run the tests using…
Justin
  • 1
  • 5
0
votes
2 answers

open five firefox in same machine - selenium grid

I'm looking confirmation before proceeding parallel test, I try to run selenium test case on 5 firefox browser on same machine, right now it is create only single browser. Below one is my node creation command. java…
Bilal Usean
  • 2,322
  • 3
  • 22
  • 45
1 2 3
99
100