Handling WebDriver Dependencies

  1. Download chrome driver depending on your browser version which is installed on your local machine. (You can download the driver based on the platform you are using. My chrome browser version is 94.0 running on Windows, so I’ve downloaded chromedriver_win32.zip)
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”);
  • Browser driver version
  • Getting the location of the browser driver (or) placing the browser driver inside the project folder. (Same has to be done when integrating the scripts in jenkins)
  • Setting the system property of chrome driver

--

--

--

CoffeeBeans helps small, medium and large businesses unlock the true potential of technology and AI to solve some of their most pressing challenges

Love podcasts or audiobooks? Learn on the go with our new app.

Recommended from Medium

The Best Time for Learning GXChain 2.0 Brand-New 2 Series of AMAs Coming!

Facet filter: Front end or backend

Windows Workloads Migration made easier with SourceFuse

Arrows Hacks — tricks for your graph models and diagrams

Trade Mining Function Launched

Launching WebServer on AWS using Terraform and Jenkins

Front End Developer Interview Questions In 2021

Technical Interview Prep Services

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
CoffeeBeans Consulting

CoffeeBeans Consulting

CoffeeBeans helps small, medium and large businesses unlock the true potential of technology and AI to solve some of their most pressing challenges

More from Medium

Test at Scale by LambdaTest goes Opensource

Test at Scale by LambdaTest, Trending in Testing Software Testing news, Photo from https://www.lambdatest.com/

Running Playwright Mocha tests in BuildWise CT Server

Bitrise integrate Browserstack to Run XCUITest

What is Wrong with Your Testing?