mercredi 25 septembre 2019

What is the difference between System.setProperty and Configuration.browser in Selenide?

Here is a reference to the original discussion: Link

There were basically two propositions on how to change the browser when executing a test using Selenide.

One was:

System.setProperty("webdriver.chrome.driver", "/path/to/chromedriver");
System.setProperty("selenide.browser", "Chrome");
open("http://google.com");

and the other was:

Configuration.browser = "chrome";

Both seem to do the same thing. What is the difference?

Aucun commentaire:

Enregistrer un commentaire