Hi All,
I have a selenium webdriver code written in Java which i want to execute in Internet Explorer 9.
My Code :---------------------------------------------------------------------------------------------------------------
DesiredCapabilities ieCapabilities = DesiredCapabilities.internetExplorer(); ieCapabilities.setCapability(InternetExplorerDriver.INTRODUCE_FLAKINESS_BY_IGNORING_SECURITY_DOMAINS, true);
WebDriver wbdv = new InternetExplorerDriver(ieCapabilities);
wbdv.get("http://www.google.co.in/");
wbdv.findElement(By.xpath("//INPUT[@id='gbqfq']")).sendKeys("Selenium");--------------------------------------------------------------------------------------------------------------
This code is working fine with Firefox and Chrome driver. But when i am trying this using IE driver, it only able to open the first page i.e. "
http://www.google.co.in/" and then it is not able to do anything.
Error it is showing :- Exception in thread "main" org.openqa.selenium.NoSuchElementException: Unable to find element with xpath == //INPUT[@id='gbqfq'] (WARNING: The server did not provide any stacktrace information)
Thanks in advanced
Sitam