You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Nov 7, 2026. It is now read-only.
So I download and place the Chrome Driver from google into the /src/main/resources/ directory. This is so I can set the property of the webdriver using the current user directory.
I then define the options I want with crome and set the driver.
Getter
WebDriver getDriver() {
return driver;
}
The getter is a simple return the driver that I set in the setter.
You can also use a getter and setter for the base URL or you can just make a setup object and use setup.url