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
0 answers

Selenium, Java, Grid How to create an unconditional pause?

I need to test time tracking on a page. I need to be able to pause and do nothing but run the clock and log time. Most of what I've seen from Googling is just Thread.sleep(300) but there are times that I actually need a test to wait five minutes or…
1
vote
1 answer

Java:Selenium Grid: How to Run specific tests on particular node

I am new to selenium. I wrote 4 tests, now i want to run 2 tests on one node and two to other, how to do that. both the node have same configurations i mean same browser same platform and same versions i am using…
Alpana Chauhan
  • 407
  • 1
  • 9
  • 18
1
vote
2 answers

getting error with chromedriver using RemoteWebdriver

Getting error: FAILED CONFIGURATION: @BeforeMethod setUp org.openqa.selenium.WebDriverException: The path to the driver executable must be set by the webdriver.chrome.driver system property; for more information, see …
1
vote
1 answer

Selenium Grid stuck after "Registering the node to hub". It does not show any line as "Executing..."

I'm facing a strange problem: I'm trying to set up a hub on a my window machine and node on VM or switch them. But if I use the exact same commands to start the hub on my test VM the registration process seems to take forever. Normally, the node…
Shubham Jain
  • 16,610
  • 15
  • 78
  • 125
1
vote
3 answers

Running AutoIT script on Selenium Grid

How can I run an AutoIT script over a Selenium Grid set up? I have the .exe file on all machines but need to have the Selenium Script to call this to run on each node of the grid, is this possible?
1
vote
2 answers

WedDriverException : java.util.HashMap cannot be cast to java.lang.String when initializing RemoteWebDriver

I am trying to run Junit tests in parllel ,did a grid setup with 3 nodes , while executing the test got an exception org.openqa.selenium.firefox.NotConnectedException: Unable to connect to host 127.0.0.1 on port 7055 after 45000 ms. My…
Vigneshwaran
  • 475
  • 3
  • 8
  • 15
1
vote
1 answer

sendkeys() function is slow within the Selenium Grid2

I am using firefox version 26 on 32 bit windows OS. Sendkeys() function work with webdriver well but when run with the selenium grid its too slow (takes 2-4 seconds to each keystroke)
1
vote
1 answer

Problems with setting up Selenium Grid2

I want to study how to run same test at same time on two computers. I've done everything that is explained in this tutorial. I have PC, where I set hub: java -jar selenium-server-standalone-2.37.0.jar -role hub And I have notebook, where is…
belek
  • 907
  • 9
  • 35
1
vote
1 answer

Taking Screenshots using Selenium Web Driver

How to take Screenshots using Selenium Web Driver ? I am using a Grid Configuration having 2 nodes. I need to take screen shots at every defined interval from both nodes. Please do not specify the way to take screenshot. I want the Test cases not to…
Aryasindhu Sahu
  • 103
  • 1
  • 13
1
vote
2 answers

How to run parallel test cases in selenium grid?

I have only one test case and i want to run that particular test case on two different machines say one in windows and other linux. How can i configure my nodes or selenium framework so that it can run my test case parallely on different machines at…
0
votes
0 answers

Selenium 4 grid hub in standalone server (Dockerized container hub) and Chrome node pods in Cloud

Selenium grid question (scenario: hub in standalone server and Chrome node pods in cloud) - Details: I have a selenium 4 grid hub running in docker container in Linux server and docker published to port 4444 to make it available in localhost:4444…
0
votes
1 answer

Can I shift to 1 machine(higher config) with 2 nodes than 2 machines(lower config) each with 1 node in selenium grid?

I am using 2 windows VMs each with 2 CPU cores and 8GB RAM each and my tests run Ok so far using selenium grid. Here I run 7 instances of chrome parallelly distributed over these 2 machines, means 1 machine may have 4 instances of chrome and another…
0
votes
1 answer

Selenium version 4.6.0 is throwing HTTP504 error

I have installed selenium 4.6.0 in my local machine which works fine, within company VPN. Then when I deployed it in our orgs kubernetes cluster (isolateComponents: true) I am getting HTTP 504 for my test cases. No issues in the chrome node…
Susanta Adhikary
  • 257
  • 2
  • 6
  • 20
0
votes
0 answers

Selenium grid file upload error org.openqa.selenium.json.JsonException:

I am using selenium grid for file upload, file upload is working for 1kb file but if I am trying to upload a 11mb file it throws the below org.openqa.selenium.json.JsonException: Unable to determine type from: <. Last 1 characters read: < Build…
0
votes
1 answer

Chrome node: Unable to execute request: java.net.ConnectException: Connection refused after navigating to second URL

Currently running Selenium Grid with a Firefox & Chrome node on a Ubuntu EC2. Tests are ran with TestNG, tests ran through the Firefox node work perfectly however with the Chrome node I am always getting connection refused after navigating to a…