In this video you will see delegating cross browser testing to a separate class. We will create static method for browser driver setup and launching the browsers.
We use WebDriverManager for the browser driver management
Headless support for Chrome and Firefox are added
Sample code is available in Gist
https://git.io/JI6uB
Sample project is available in GitHub
https://github.com/pragmatictesters/Pragmatic-Learning-SeleniumWebDriver-B01D2020