0

Safari does not support execution of automation scripts on multiple threads, Please let me know if there are any alternatives to run selenium tests in parallel. I am running tests in parallel on other browsers like chrome and firefox. The Framework is developed in python using pytest and I am using pytest-xdist to run the scripts in parallel. I also tried pytest-parallel but even this did not help.

Rohit
  • 376
  • 3
  • 9

1 Answers1

1

Have you searched other related threads? Example thread from about 8 months ago: here

Paraphrased quote from there:

My expectation is that you're hitting default maxSession limit of 5 browser instances.

You can double check it by opening your Selenium Grid console and looking into node configuration:

The value can be ramped up by providing the relevant maxSession parameter to your Selenium Grid Node startup command line like:

java -jar selenium-server-standalone-3.141.59.jar -role node -maxSession 10 -hub http://localhost:4444/grid/register
                                                             ^^^^^^^^^^^^^^

References

Anton Todorov
  • 1,117
  • 1
  • 8
  • 14