In order to execute test scripts on diff browsers, we download specific browser driver from seleniumhq.com
and run the scripts.
This code works fine as it should:
System.setProperty("webdriver.ie.driver", "C:\\Users\\Public\\CIO\\resources\\iedriver.exe");
WebDriver driver = new InternetExplorerDriver();
driver.get("www.mywebsite.com");
When I already have IE Executable -'iexplore.exe' on my machine, can't selenium webdriver use that to launch IE?
Why do we specifically download IEDriver
from seleniumhq.com
here?
C:\Program Files\Internet Explorer\iexplore.exe
I tried to even setup that up and ran the program. Browser got launched with address as --port=1234/
however it could not navigate to respective website and eventually threw exception:
Exception in thread "main" org.openqa.selenium.remote.UnreachableBrowserException: Could not start a new session. Possible causes are invalid address of the remote server or browser start-up failure. Build info: version: '2.28.0', revision: '18309', time: '2012-12-11 20:21:18'