Webdriver wait | Selenium Forum
M
Posted on 27/01/2016
Hi,

I am using waitMethods.waitForElementVisible(ele) for a element to appear. but even if the element is visible then it takes 50 secs.

public boolean waitForElementVisible(WebElement object) {

boolValue = false;
// wait = new WebDriverWait(driver, 50);
try {
wait.until(ExpectedConditions.visibilityOf(object));
boolValue = true;
} catch (Exception e) {
return boolValue;
}

return boolValue;
}

thanks

M
Replied on 28/01/2016

try implicit wait.