I am having trouble getting the ChromeDriver and IEDriverServer to be recognized from the Java project I am setting up. The executables have been downloaded and added to C:\Tools\selenium\drivers and that has been added to the path variable (Windows). How ever when I try to run the following code:
import org.openqa.selenium.By;
import org.openqa.selenium.support.ui.ExpectedConditions;
import org.openqa.selenium.support.ui.WebDriverWait;
import org.openqa.selenium.WebDriver;
import org.openqa.selenium.WebElement;
//import org.openqa.selenium.firefox.FirefoxDriver;
//import org.openqa.selenium.chrome.ChromeDriver;
import org.openqa.selenium.ie.InternetExplorerDriver;
public class MarketLeaderHomePage {
public static void main(String[] args) throws Exception {
//WebDriver driver = new FirefoxDriver();
WebDriver driver = new InternetExplorerDriver();
driver.get("myURL");
I get the error "The path to the driver executable must be set by the webdriver.ie.driver system property;". I can set the property to specify the driver path explicitly but my understanding was if the driver exes were added as part of the path I should not have to do this. I am new to Java so I am wondering if there is something that I am missing that needs to be done with regards to the package or the Eclipse IDE?