Selenium - How to get rid of version mismatch b/w browserDriver & browser? Local drivers not needed

Опубликовано: 23 Апрель 2024
на канале: Programmer World
277
1

In this video will see how to overcome the problem of version mismatch between browser driver(e.g chromedriver,firefoxdriver etc) and browsers(e.g chrome,firefox etc.). This we will solve it by using WebDriverManager Class in our maven project. If you are not using maven project you can add the jar file of WebDriverManager class to your project.

Details steps has been shown in below video:
   • How to add external jars in selenium/...  
Below is the video to fix when added maven dependency does not reflect:
   • Selenium - How to fix when added MAVE...  

I hope you like this video. For any questions, suggestions or appreciation please contact us at: https://programmerworld.co/contact/ or email at: [email protected]

Details:
https://programmerworld.co/selenium/s...

Code:
public class WebDriverManagerDemo {
public static void main(String[] args) {
WebDriverManager.firefoxdriver().setup();
WebDriver driver = new FirefoxDriver();
driver.get("https://programmerworld.co/");
}
}