WebDriverWait wait = new WebDriverWait(driver, 10); WebElement element = wait.until(ExpectedConditions.elementToBeClickable(By.id("someid")));
Please feel free to add more context.
What does your code look like ?
What does your html look like ?
Browser flavor and version ?
Complete stack trace ?
Thanks & Regards
Krishnan Mahadevan
"All the desirable things in life are either illegal, expensive, fattening or in love with someone else!"
My Scribblings @ http://wakened-cognition.blogspot.com/
My Technical Scribbings @ http://rationaleemotions.wordpress.com/
To unsubscribe from this group and stop receiving emails from it, send an email to selenium-user...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/selenium-users/fad11831-fc4a-4129-acaa-0b9b9f909493%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
PageFactory.initElements(new AjaxElementLocatorFactory(driver, 10), myPage);
@FindBy(using = "xpath=//[text(), '${replaceMe}']")
private WebElement foo;
To unsubscribe from this group and stop receiving emails from it, send an email to selenium-users+unsubscribe@googlegroups.com.
To post to this group, send email to selenium-users@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/selenium-users/a2490677-7cdd-4e90-89c0-fac7101ae8f9%40googlegroups.com.