How MaxSessions are different from MaxInstances properties of Selenium Grid?

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

edited Jun 21 110 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 by Anvi
• 13,960 points

Related Questions In Selenium

0 votes
1 answer
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 in Selenium by Amod Mahajan
1,532 views
0 votes
1 answer

What are the different components of Selenium?

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

answered Jan 7 in Selenium by Fuji
299 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 in Selenium by Abha
• 27,180 points
121 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,110 points
942 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,130 points
1,121 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,130 points
859 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 in Selenium by Anvi
• 13,960 points
162 views
0 votes
1 answer