0

I am trying to figure out how to do cross browser using WebDriverManager in my test base? I know how to do one browser at a time:

WebDriverManager.chromdriver().setup();
driver = new ChromeDriver();

So do I use if and else statements or? Thanks for any leads and have a blessed day!

Boni García
  • 4,618
  • 5
  • 28
  • 44

1 Answers1

0

WebDriverManager provides a generic manager that can be used for cross-browser testing. You can use this feature through the method getInstance(), invoked using the following options:

  • getInstance(Class<?> webDriverClass)
  • getInstance(DriverManagerType driverManagerType)
  • getInstance(String browserName)

You can see more info and examples in the WebDriverManager documentation.

Boni García
  • 4,618
  • 5
  • 28
  • 44