Quantcast
Channel: Active questions tagged selenium - Stack Overflow
Viewing all articles
Browse latest Browse all 99415

How to initiate multiple versions of Geckodriver through System.setProperty()

$
0
0

I don't know if I'm overseeing something, but is it possible to use multiple geckodriver versions in the same JVM?

The problem is with

System.setProperty("webdriver.gecko.driver", "path of the geckodriver1");
driver1 = new FirefoxDriver();

System.setProperty("webdriver.gecko.driver", "path of the geckodriver2");
driver2 = new FirefoxDriver();

where I would define a system property. For a single instance this is no problem and working fine, but how can I define a FirefoxDriver with another geckodriver. Processes would run parallel so global settings would interfere with each other.

I know, that you can start multiple Firefox Session with the same driver, but I need to support different Firefox versions and am therefore looking for a solution with multiple geckodrivers as well.

Thanks in advice.


Viewing all articles
Browse latest Browse all 99415

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>