Handling WebDriver Dependencies

WebDriver driver = new ChromeDriver();
driver.get(“https://www.google.com”);
WebDriverManager.chromedriver.setup();
WebDriver driver = new ChromeDriver();
driver.get(“https://www.google.com”);
WebDriverManager.firefoxdriver.setup();
WebDriver driver = new FirefoxDriver();
driver.get(“https://www.google.com”);
WebDriverManager.edgedriver.setup();
WebDriver driver = new EdgeDriver();
driver.get(“https://www.google.com”);
WebDriverManager.safaridriver.setup();
WebDriver driver = new SafariDriver();
driver.get(“https://www.google.com”);

--

--

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store