Posts

Showing posts from February, 2023

How to launch the chrome browser without chromedriver.exe (only for Maven)

Image
Selenium WebDriver is the most used automation tool these days. Selenium WebDriver  interacts with different browsers like Chrome, Firefox, and Internet Explorer to run various types of tests. In short Selenium WebDriver is a popular automation tool for cross-browser testing. Cross-browser automation testing requires Selenium to interact with the browser for which the script is to be run. To interact browser, you must download the driver.exe file according to the browser. Example: You want to run your automation script in the Chrome browser. So you have to download the chromedriver.exe file into your local system and then you have to set the path of that chromedriver.exe to your automation script. set chromedriver.exe path: String driverPath= "write here your chromeDriver path"; System.setProperty("webdriver.chrome.driver", System.getProperty("user.dir")+pathDriver); Create chromerdriver instance: WebDriver driver = new ChromeDriver(); get() method to ope...