Selenium WebDriver Multi-Threading & Browser Hide with Java

I am using the Java API for Selenium WebDriver:

  • Is it possible to simultaneously create multiple instances of Selenium WebDriver from different threads without conflicts?

  • How to change the path to the firefox installation directory that WebDriver uses if I installed firefox in a different directory?

  • How can I hide all browser instances (e.g. firefox) that started these threads?

Thanks.

+4
source share
1 answer

I can give you the answer to your first question.

Yes, you can run multiple instances of the driver at the same time. However, it is not recommended that you run more than 5 instances at the same time on the same selenium server. The selenium grid was specifically designed for this (complete with the Selenium server).

+4
source

All Articles