I am trying to run a cross browser test in selenium using TestNG. It works fine in Firefox and Chrome, but not in IE. Script opens IE and on load, it points to URL - http://localhost:16189/ It doesn't navigate to base url.
Below is my config from testng.xml
<test name="IETest">
<parameter name="browser" value="IE" />
<classes>
<class name="crossbrowserpack.CrossBrowserScript">
</class>
</classes>
</test>
Below is the instance creation code for IE in my code.
if(browser.equalsIgnoreCase("ie")){
System.setProperty("webdriver.ie.driver","C:\\IEdriver.exe");
//create IE instance
driver = new InternetExplorerDriver();
}
Below is my test method.
public void testParameterWithXML() throws InterruptedException{
driver.get("http://newtours.demoaut.com");