Commonly supported browsers and their drivers:
- ✓Google Chrome → ChromeDriver
- ✓Firefox → FirefoxDriver
- ✓Safari → SafariDriver
- ✓HtmlUnit → HtmlUnitDriver (Headless browser)
- ✓Android → Selendroid / Appium
- ✓iOS → ios-driver / Appium
Technology
Selenium
Difficulty
Beginner
Experience
Fresher
Type
Technical

AutomateQA Team
QA Automation Engineers
Interview Question
Selenium web-driver supports multiple browsers like chrome, firefox and safari each with their own dedicated driver.
Commonly supported browsers and their drivers:
A QA team runs their test suite on ChromeDriver locally and FirefoxDriver in CI/CD pipeline to ensure cross-browser compatibility.
// Chrome
WebDriver chrome = new ChromeDriver();
// Firefox
WebDriver firefox = new FirefoxDriver();
// Safari
WebDriver safari = new SafariDriver();
// Headless - HtmlUnit
WebDriver htmlUnit = new HtmlUnitDriver();
chrome.get("https://automateqa.online");
System.out.println(chrome.getTitle());
chrome.quit();