Selenium Grid2 - Can I run 10 instances of Chrome?

Currently, Selenium Grid2, working with the default configuration, shows that it can run 5 Firefox browsers, 5 chrome browsers and 1 IE. With the simultaneous use of a maximum of 5 copies.

How can I change this so that it starts 10 copies of chrome at the same time?

I successfully changed the maxsession node parameter with -maxSession 10 . However, when I run 10 tests, the hub shows that 5 are in the waiting queue.

I don’t know if it matters or not, but the hub itself shows maxSession parameters equal to 5. But I could not change that.

Any ideas on how to do this?

+6
source share
1 answer

I understood:

start node with the MaxSession argument and let the MaxInstances parameter be in the browser configuration, that is:

java -jar $JARFILE -Dwebdriver.chrome.driver=$CHROMEDRIVER -role webdriver -hub http://$HUB_IP:4444/grid/register -maxSession 10 -browser browserName=chrome,maxInstances=10" 

pretty simple actually ...

+7
source

Source: https://habr.com/ru/post/902659/


All Articles