Am using selenium webdriver 2.210 + JAVA for testing.I have a sample code for selecting all mails in gmail.But the code throws an \"Element is not currently visible and so m
I'm not sure, but every watir-webdriver element has the - (Object) wait_until_present(timeout = 30) method.
if this step is optional, you should check for visibility:
element = driver.findElement(By.xpath("//div[@class = 'T-Jo-auh']"));
if (element.isDisplayed()) {
element.click();
}
Please note, I'm not a java guru, and the code above was not tested. Give it a try.