I tried to run a selenium webdriver script in internet explorer using IE driver server. It launched the browser and home page, but it's not clicking "Next" button and not proceeding to further pages.Can anyone please tell me the reason behind it and what to do to go to further pages.
I tried to run the script in multiple browsers.
@BeforeTest public void launchBrowser(String browser) throws Exception { if(browser.equalsIgnoreCase("FF")) { log.info("Launching Firefox Browser");
driver=new FirefoxDriver();
}
else if(browser.equalsIgnoreCase("IE"))
{
System.setProperty("webdriver.ie.driver","D:\\Drivers\\IEDriverServer.exe");
log.info("Launching Internet Explorer Browser");
driver=new InternetExplorerDriver();
}
else if(browser.equalsIgnoreCase("GC"))
{
System.setProperty("webdriver.chrome.driver", "D:\\Drivers\\chromedriver.exe");
log.info("Launching Chrome Browser");
driver=new ChromeDriver();
}
driver.manage().window().maximize();
driver.manage().timeouts().implicitlyWait(20, TimeUnit.SECONDS);
}