How MaxSessions are different from MaxInstances properties of Selenium Grid?

0 votes
How MaxSessions are different from MaxInstances properties of Selenium Grid?
Jun 21, 2019 in Selenium by Palak

edited Jun 21, 2019 397 views

1 answer to this question.

0 votes

Hello Palak, MaxInstances is the no. of browser instances (of same versions) that can run on the remote machine, as shown in following commands:

-browser browserName=firefox,version=59,maxInstances=3,platform=WINDOWS
-browser browserName=InternetExplorer,version=11,maxInstances=3,platform=WINDOWS

It means we can run three instances of both Firefox and IE at the same time. So, a total of six different browsers (FireFox & IE) could run in parallel. 

While MaxSession shows how many browsers, independent of the type & version, can run concurrently on the remote machine. It supersedes the “MaxInstances” setting. From above command, if the value of “maxSession” is one, then no more than a single browser would run. While its value is two, then any of these combinations (2FF, 2IE, 1FF+1IE) can run at a time.

answered Jun 23, 2019 by Anvi
• 14,010 points

Related Questions In Selenium

0 votes
1 answer

How are 'Selenium-server-standalone.jar' and 'Selenium Client & WebDriver' different from each other?

Okay, your understanding of "Selenium Server" & ...READ MORE

answered Apr 6, 2018 in Selenium by nsv999
• 5,510 points
1,285 views
0 votes
2 answers

How different/ similar are Protractor and Selenium? Which is better?

Protractor and Selenium both are used to ...READ MORE

answered Jun 9, 2019 in Selenium by Amod Mahajan
2,010 views
0 votes
1 answer

What are the different components of Selenium?

Selenium is a testing tool and comprises ...READ MORE

answered Jan 7, 2019 in Selenium by Fuji
413 views
0 votes
1 answer

What are locators in Selenium and what are the different types of it?

Hi Divya, in Selenium Locators define an ...READ MORE

answered May 7, 2019 in Selenium by Abha
• 27,800 points
258 views
0 votes
1 answer

Finding WebDriver element with Class Name in java

The better way to handle this element ...READ MORE

answered Apr 10, 2018 in Selenium by nsv999
• 5,510 points
2,174 views
0 votes
1 answer
0 votes
1 answer

Geo-location microphone camera pop up

To Allow or Block the notification, access using Selenium and you have to ...READ MORE

answered May 11, 2018 in Selenium by Samarpit
• 5,870 points
1,804 views
0 votes
1 answer

How to use such xpath to find web elements

It's much simpler to use: #MyDiv123 > div.super or ...READ MORE

answered Jun 14, 2018 in Selenium by Samarpit
• 5,870 points
1,778 views
0 votes
1 answer

How driver.close() and driver.quit() commands are different from each other in Selenium?

Hello Pallavi, Selenium WebDriver’s close() command closes the ...READ MORE

answered May 7, 2019 in Selenium by Anvi
• 14,010 points
356 views
0 votes
1 answer

How many types of Assertion are there in Selenium Webdriver?

Hey Suraj, there are two types of ...READ MORE

answered May 14, 2019 in Selenium by Anvi
• 14,010 points
184 views