Do browser.visit again after getting error in finding text

This commit is contained in:
Himanshu Mishra
2020-05-05 20:07:43 +09:00
parent fe088038d6
commit 9ea93173f0
+1
View File
@@ -133,6 +133,7 @@ async function waitForPageWithText(
if (error instanceof browser.assert.AssertionError) {
findTextAttempts++;
if (findTextAttempts <= maxFindTextAttempts) {
await browser.visit(path);
await new Promise(resolve => setTimeout(resolve, intervalMs));
continue
}