Use a custom driver class instead of utility classes

How can I create my own driver class in Selenium? When learning test automation, you will want your test methods to be executed in multiple browsers such as Firefox and Chrome. A Firefox driver is created with the FirefoxDriver class: WebDriver driver = new FirefoxDriver(); A Chrome driver is created with the ChromeDriver class: WebDriver…