What Is the Difference Between MaxSessions Vs. MaxInstances Properties in Selenium Grid?

1.2K    Asked by ABHISubramaniam in QA Testing , Asked on Jan 3, 2020
Answered by ABHI Subramaniam

MaxInstances is the no. of browser instances of a similar variant of the browser that can run on the remote machine.

How about we see a model underneath:

- browser browserName=InternetExplorer,version=6,maxInstances=2,platform=WINDOWS

- browser browserName=firefox,version=11,maxInstances=2,platform=WINDOWS

According to the above model, it will permit us to run 4 occasions of both IE and Firefox simultaneously (in equal) in a remote machine.

MaxSession says what number of programs, autonomous of the sort and form, can run in equal on the remote machine.

It overrides the "MaxInstances" setting.

In the event that maxSession=1, at that point close to a solitary program would run. On the off chance that maxSession=2, at that point any of the beneath mixes can run at a time regardless of what MaxInstances we have characterized.

2 Internet Explorer

2 Firefox

1 Internet Explorer + 1 Firefox



Your Answer

Interviews

Parent Categories