I'm unable to run the selenium script after providing the driver path. The installed edge browser version - Microsoft Edge Version 115.0.1901.188 (Official build) (64-bit)
enter image description here Driver installed into my Windows 10 64 bit laptop- Product Version - 115.0.1901.188 enter image description here
Please let me know why I'm seeing getting below exception when running the script. PFA, below for more details enter image description here
Please help me to resolve this issue.
Thanks, Shreyansh Singh
When running my selenium code using Java in Eclipse. Downloaded the edge browser and it's present under mentioned path in script.
Since you are using Selenium v4.10.0
, you don't really need to set the driver executable path anymore. If you do not provide the driver path, selenium's new tool SeleniumManager
will download/handle the drivers for you.
So remove the System.setProperty
line from your code as below:
public static void main(String[] args) {
// TODO Auto-generated method stub
WebDriver driver = new EdgeDriver();
driver.get("https://www.google.com");
System.out.println(driver.getTitle());
driver.close();
}