JFK
JFK

Reputation: 73

Selenium WebDriver Multi-Threading & Browser Hiding using Java

I'm using the Java API of the Selenium WebDriver:

  1. Is it possible to create multiple instances of the Selenium WebDriver from different threads simultaneously without conflict?

  2. How do I change the path of the firefox installation directory that WebDriver uses if I installed firefox in a different directory?

  3. How can I hide all the instances of the browsers(e.g firefox) that those threads started?

Thank you.

Upvotes: 4

Views: 6654

Answers (1)

prestomanifesto
prestomanifesto

Reputation: 12796

I can give you an answer to your first question.

Yes, you can run multiple driver instances simultaneously. However it is not recommended to run more than 5 or so instances at once in a single selenium server. Selenium Grid was designed specifically for this (it is bundled with the Selenium Server).

Upvotes: 4

Related Questions