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

Selenium Grid: RemoteWebDriver blocks the execution

I am new on using Selenium and I faced some questions on using RemoteWebDriver in Selenium Grid 2. I would like to what's wrong in my code. Thanks. I set the RemoteWebDriver in 3 steps: Set the Chrome driver to system property, I checked the path…
0
votes
0 answers

Execution is overlapped nodes created by docker selenium grid and distribution with testNG data provider how avoid this?

I am using Docker selenium Grid. Created multiple nodes and Success with launching my scripts in single node but when i use multiple nodes my execution statements has been passes to recent activated node. Ex: I have login verification and this is…
0
votes
1 answer

Selenium Node/Hub Authentication

I am trying to stop a selenium hub registering a node by implementing a custom proxy. I have some code that works for a custom proxy. However, the client can get round this by not specifying the custom proxy in its configuration. Is there a way we…
T. Daves
  • 40
  • 1
  • 9
0
votes
1 answer

Enforce not using Selenium RC in a grid

I am to provide a Selenium grid and would like to enforce that our developers no longer use the RC API. From what I learnt RC is deprecated and on the client side you need to import the legacy code:…
Marged
  • 10,577
  • 10
  • 57
  • 99
0
votes
1 answer

Run automated tests on AWS device farm in incremented ways

I am evaluating AWS device farm for running mobile web test. These are the steps I am anticipating: Create sample tests (Java) Package that as zip file Go through the AWS device farm console and upload the test zip only Manually select the…
0
votes
2 answers

Facing issues in Alertbox selenium 3.0

After clicking save button a pop will open and i write a code below to do accept but its not working. `driver.findElement(By.id("save")).click(); Alert succ=driver.switchTo().alert(); System.out.println(succ.getText()); …
user5606878
0
votes
0 answers

Can I write Selenium EdgeDriver tests on Windows 7 IDE

I am running Selenium WebDriver tests in the BrowserStack Automate grid. I am writing tests on a Windows 7 machine. I don't seem to be able to download and install the Edge WebDriver. All instructions seem to point to downloading and installing…
Mark Cooper
  • 6,738
  • 5
  • 54
  • 92
0
votes
0 answers

Selenium Grid: WebDriverException with Windows 8.1/Firefox

I have a simple Selenium Grid remote driver initialization which is failing with an WebDriverException as below: from selenium import webdriver from selenium.webdriver.support import expected_conditions as…
0
votes
2 answers

how to Select a hidden sub menu in selenium Java?

I am new to selinum , during mouse hover(Request button) two button will be display on the screen. 1.User Status button 2. confirm user button On click of User status button particular javascript function should be trigger.. I tried the below…
Giri
  • 127
  • 2
  • 5
  • 15
0
votes
1 answer

Issue creating RemoteWebDriver instance in C# and SpecFlow

I'm banging my head against a wall trying to use a RemoteWebDriver instance in my selenium C# project. Whenever I run my test I get 'Object reference not set to an instance of an object' I started my hub with the following... java -jar "C:\Selenium…
Konzy262
  • 2,747
  • 6
  • 42
  • 71
0
votes
2 answers

how to run methods or classes parallely on same machine using selenium java

I am new to selenium and I want to run two classes or two methods at the same time not one after the other. I referred many links specially this link but in vain. Below is my code of testing.xml (for testing methods) where testStageDashboardand…
whatsinthename
  • 1,828
  • 20
  • 59
0
votes
1 answer

How to read value in CSV file

Need help from you regarding a Scenario, i.e., I have to take a value from DB like "42258258.2300" and convert this into "42,258,258.00" value. And again need to check whether this value present in downloaded CSV file. I used below code for read…
Test Engg
  • 43
  • 1
  • 1
  • 7
0
votes
1 answer

I encountered a mistake: Couldn't register this node

{ "capabilities": [ { "browserName": "firefox", "maxInstances": 5, "seleniumProtocol": "WebDriver" }, { "browserName": "chrome", "maxInstances": 5, "seleniumProtocol": "WebDriver" }, { …
0
votes
1 answer

selenium safari driver System.NotImplementedException

I am using selenium grid 3.3.1 on mac OS Sierra and run remotely commands from windows (using C# with selenium 3.3.1). When I tried to use ExpectedConditions.ElementToBeClickable I get the following exception: System.NotImplementedException was…
Hezi Israeli
  • 389
  • 1
  • 2
  • 14
0
votes
2 answers

Selenium Grid how to get file from it with Java?

I have Selenium Grid on remote machine with IP. One of my test cases has to download the file and in assertion I want to compare the name of downloaded file, also in another test case I have to import file to application from Windows. How to do…
robmax
  • 332
  • 1
  • 6
  • 24