October 2018
Intermediate to advanced
192 pages
5h 12m
English
One of the ways to use the WebDriverManager library is as a Java dependency. Add the dependency shown in the following code in the Dependencies section. This dependency can be found on GitHub:
<dependency> <groupId>io.github.bonigarcia</groupId> <artifactId>webdrivermanager</artifactId> <version>3.0.0</version> <scope>test</scope></dependency>
3.0.0 is the latest version at the time of writing.
Prior to WebDriverManager, we had to write the following in order to work with the browsers. Sample code for the Chrome browser is shown here:
private WebDriver driver = null; System.setProperty("webdriver.chrome.driver", "C:\\chromedriver.exe"); driver = new ChromeDriver();
The same code can be written efficiently, ...
Read now
Unlock full access