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
3
votes
1 answer

Url /Ip to pass while creating RemoteWebDriver

While making RemoteWebDriver object we need to pass URL and DesiredCapability Object. Browsing through different tutorial on net I found that in some they were passing URL of Node while in others they were passing URL of HUB. Please clarify which…
brij
  • 217
  • 7
  • 17
3
votes
0 answers

PhantomJS with Selenium Grid 2 - how to disable phantomjsdriver.log?

I have been trying to find this somewhere in the documentation, but can't seem to find anything relevant - could anybody share how to disable the logs created by a Selenium Grid node, in the file phantomjsdriver.log, (or if not, only write at a…
chrisc
  • 434
  • 3
  • 9
3
votes
1 answer

Selenium Grid with Docker containers on different hosts

I like to setup a Selenium Grid on AWS with the official Docker images, that can be found here https://github.com/SeleniumHQ/docker-selenium Hub and nodes should reside on different machines / docker hosts. I use an ambassador container, as…
3
votes
1 answer

Grid : How to make hub password protected

I am planning to deploy my hub in internet.I want only particular nodes to connect to my hub(Restricting unknown nodes from connecting to my hub).Currently i am doing it in firewall level.Is there any feature in grid level to make hub password…
Vicky
  • 2,811
  • 2
  • 18
  • 32
3
votes
1 answer

How can I add profile preferences to Chrome for Selenium Grid 2 in C#?

This is how I add profile preferences to Chrome for Local Auto-test runs and TeamCity(CI): Capabilities = DesiredCapabilities.Chrome(); var chromeOptions = new…
Maverick
  • 33
  • 1
  • 4
3
votes
1 answer

How to get the number of idle browsers for a node in selenium grid2

My current setup is 5 nodes with 10 Firefox browsers each, all connected to a hub. I am running into a problem where I am exhausting the 10 firefox browsers for each node. So any new selenium runs are getting queued up at the Hub and running when…
Amey
  • 8,037
  • 8
  • 36
  • 59
2
votes
1 answer

ConnectionError: Connection lost - read ECONNRESET in protractor

I am using protractor 52.2 and cucumber 3.2.2. I am using selenium grid(selenium-server-standalone-3.14.0.jar) with the protractor and running my script in 4 browsers of 4 different nodes. I have a table of 600 rows in the DB. Initially, I am…
2
votes
4 answers

How to run test on specific browser by selenium grid

I have register two platform with chrome browser on windows 7 and windows 10 into selenium grid server. I want to run a test at Chrome browser on Windows 10 but when i run the test, the test randomly run on Windows 7 and randomly run on Windows 10…
2
votes
1 answer

Selenium grid hub console is returning 500

I have setup a selenium grid with port 4444 for hub and node with port 5555. When I try to access console of the hub by http://localhost:4444/wd/hub/console I am getting the below logs. When i tried to access the session…
2
votes
2 answers

Downloading a excel file on selenium grid and reading it

Here is my scenario: we run our selenium test suite on selenium grid which was setup in docker containers(linux box) from jenkins. In one of my test when i click on export option, it downloads an excel file on selenium grid. Issue: I am unable to…
nurav
  • 189
  • 2
  • 17
2
votes
1 answer

selenium-server-standalone.jar maven dependency

I am using Maven as a build tool. On selniumhq site I can see selenium-server-standalone.jar file but I could not found related Maven dependency. Is there any maven dependency for selenium standalone file? latest selenium standalone file is :…
2
votes
0 answers

Selenium Hub Node with Docker containers on different hosts

I am trying to run docker Selenium on diff hosts using these commands on Hub docker run -d -p 4444:4444 --name hub selenium-hub:1.0.0 Node docker run -d -p 5556:5556 -e REMOTE_HOST="http://nodeip:5556" -e HUB_PORT_4444_TCP_ADDR=hubip -e…
Siraj Syed
  • 491
  • 1
  • 7
  • 16
2
votes
2 answers

Selenium Grid - For Chrome browser when selenium node is run as a Windows service, I get InitSession unknown error: unable to discover open pages

I am a Selenium newbee. In fact I am covering for another automation tester. I am trying to setup Selenium Grid, I have successfully setup Hub and node. When I run Selenium node as a Windows Service, for chrome browser I get following…
Rocky
  • 353
  • 5
  • 20
2
votes
1 answer

Confusing Build log in TeamCity in case of parallel tests

I'm using Java, Gradle, TestNG, Selenium Hub and Node on Localhost and trying to run 5 tests in parallel, the following is a sample code. This is Base class: package tests.temp; import java.net.MalformedURLException; import java.net.URL; import…
sidrom
  • 23
  • 5
2
votes
2 answers

parallel test with appium & selenium grid

I'm trying to run parallel test on 2 devices using appium & selenium grid but for some reason it runs only on the first node server (and first device) but nothing happen on the second server. Also if I'm shutting down the first server and run the…
user3718160
  • 431
  • 1
  • 10
  • 20
1
2
3
11 12