开发者

Selenium WebDriver Multi-Threading & Browser Hiding using Java

开发者 https://www.devze.com 2023-04-07 17:01 出处:网络
I\'m using the 开发者_开发知识库Java API of the Selenium WebDriver: Is it possible to create multiple instances of the Selenium WebDriver from different threads simultaneously without conflict?

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.


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).

0

精彩评论

暂无评论...
验证码 换一张
取 消