Do browser.visit again after getting error in finding text
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user