Our great sponsors
-
webdrivermanager
Automated driver management and other helper features for Selenium WebDriver in Java
-
selenium-java-browser-factory
Example of the Factory design pattern implementation to create browser instances using Selenium WebDriver
-
WorkOS
The modern identity platform for B2B SaaS. The APIs are flexible and easy-to-use, supporting authentication, user identity, and complex enterprise features like SSO and SCIM provisioning.
On lines 5 to 9, there’s the implementation of the createDriver() method creating a local browser instance using the WebDriverManager library. Note that the new browser instance is using the getOptions() and I will explain it in a minute.
The full BrowserDriver implementation can be found at https://github.com/eliasnogueira/selenium-java-browser-factory/blob/master/src/main/java/com/eliasnogueira/driver/BrowserFactory.java
Related posts
- Is there a specific way to handle code for trying multiple browsers?
- New Versions Grr...
- How do I avoid explicitly specifying a driver like ChromeDriver, MozillaDriver, and OperaDriver for a browser using Selenium Java?
- 4 ChromeDriver sessions created after running a cucumber scenario?
- Chrome session failing to be created