You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi,
We observed issue with "I wait 20 seconds for element having xpath "XPATH" to display" and
same step for element to get enable.
Let's say if we define time for wait as 20 seconds , then it is actually waiting for 20 * 1000 i.e 20000 seconds.
This is because of following code.
public void waitForElementToDisplay(String accessType, String accessName, String duration) {
By byEle = getelementbytype(accessType, accessName);
WebDriverWait wait = (new WebDriverWait(driver, Integer.parseInt(duration) * 1000));
wait.until(ExpectedConditions.visibilityOfElementLocated(byEle));
}
public void waitForElementToClick(String accessType, String accessName, String duration) {
By byEle = getelementbytype(accessType, accessName);
WebDriverWait wait = (new WebDriverWait(driver, Integer.parseInt(duration) * 1000));
wait.until(ExpectedConditions.elementToBeClickable(byEle));
}
We should not multiply duration with 1000. Please remove it.
The text was updated successfully, but these errors were encountered:
Hi,
We observed issue with "I wait 20 seconds for element having xpath "XPATH" to display" and
same step for element to get enable.
Let's say if we define time for wait as 20 seconds , then it is actually waiting for 20 * 1000 i.e 20000 seconds.
This is because of following code.
We should not multiply duration with 1000. Please remove it.
The text was updated successfully, but these errors were encountered: