Back

Explore Courses Blog Tutorials Interview Questions
0 votes
2 views
in DevOps and Agile by (19.7k points)

I am trying doing automation using selenium. I have opened a hub by 

`start java -jar selenium-server-standalone-2.40.0.jar -role hub -port 6156`

and then started a node on a firefox browser by 

`start java -jar selenium-server-standalone-2.40.0.jar -role node -hub

http://localhost:6156/grid/register -browser                                                                                                                                 "browserName=firefox,setjavascriptEnabled=true,acceptSslCerts=true,maxInstances=5,platform=WINDOWS" -port 6157`

here I mentioned maxInstances=5 if I change it to 10 then also at one instance only 5 browsers are opening. Can anybody suggests that is it a restriction in selenium that at one instance we can have only maximum 5 instances of a particular browser opening......how many maximum session of firefox can I open at one time.  

1 Answer

0 votes
by (62.9k points)

Set the '-maxSession' property. This property represents how many browsers can be run simultaneously in a node.

'maxInstances' sets how many instances of a particular browser can be opened whereas 'maxSession' decides how many total browsers (includes all firefox, ie, chrome etc.) can be run in a node.

Browse Categories

...