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
I'm using below action to create custom wait for progress bar/loader to disappear but even when loader is disappeared, code still waits for 30s timeout. Can somebody please help?
public class WaitForSpinLoader implements Interaction {
@Step("User waits for loader to disappear")
@Override
@Screenshots(disabled = true)
public <T extends Actor> void performAs(T actor) {
WebDriverWait wait = new WebDriverWait(BrowseTheWeb.as(actor).getDriver(),
10);
wait.until(new ExpectedCondition<Boolean>() {
@Override
public Boolean apply(WebDriver driver) {
if (CurrentVisibility.of(CommonPage.spinner).viewedBy(actor).asBoolean()) {
return false;
} else {
return true;
}
}
});
}
}
In Serenity.properties I'm using webdriver.timeouts.implicitlywait = 30000.
Note: I'm using this approach as progress bar/loader appears randomly.
The text was updated successfully, but these errors were encountered:
I'm using below action to create custom wait for progress bar/loader to disappear but even when loader is disappeared, code still waits for 30s timeout. Can somebody please help?
In
Serenity.properties
I'm usingwebdriver.timeouts.implicitlywait = 30000
.Note: I'm using this approach as progress bar/loader appears randomly.
The text was updated successfully, but these errors were encountered: