I am using Selenium WebDriver and run into a issue.
In the UI, elements are seen by the WebDriver but couldn't perform any actions such as click, type, select etc. Elements are findby the selenium and returned as instance of webelement. I can get, getText(),isEnabled() etc, but wont perform any actions. There is no exceptions, it just hangs.
I dont understand this behavior. If it seen by the WebDriver, it should click. I have tried using actions. That too shows the same behavior.
How to debug this issue? Any ideas?
Sample code,
driver = new FirefoxDriver();
driver.manage().timeouts().implicitlyWait(Integer.parseInt(Timeout), TimeUnit.SECONDS);
element=driver.findElement(By.id("test"));
element.clear();
element.sendKeys("test");
This works in other websites. Not in the one I'm testing. So I don't know, is there issue in WebDriver or in AUT.
EDIT: After moving to Selenium 2.13.0, above issues resolved. But I still want to know how to debug in case of error.