0

When I'm specifying the path of iedriverserver or any other browser driver, I have to set it using system property.

This is my code:

System.setProperty("webdriver.ie.driver","Driver path");

If i'm downloading the iedriver via maven, is there any way to find its path and put it in system.setproperty()?

iamsankalp89
  • 4,607
  • 2
  • 15
  • 36
ARJUN U
  • 63
  • 1
  • 10

1 Answers1

0

When you are using POM no need to specify the path for jars....POM will do it for you automatically.

IF not using maven, Download the ieServer and pass it to driver path

use this

 String driverPath = "IE driver path";
System.setProperty("webdriver.ie.driver", driverPath+"IEDriverServer.exe");
Webdriver driver = new InternetExplorerDriver();
driver.manage().window().maximize();
iamsankalp89
  • 4,607
  • 2
  • 15
  • 36
  • hi, Jars I'm not adding manually. I just want to add the path of Iedriver in the system.set property. – ARJUN U Sep 25 '17 at 04:37