We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 604a932 commit 2e3cec3Copy full SHA for 2e3cec3
scripts/actions/webdriver-mobile.mjs
@@ -79,12 +79,15 @@ const navTest = async () => {
79
console.log('\nOpening mobile Nav menu');
80
let _desktopRN;
81
let releaseNotes;
82
+ const MAX_TRIES = 3;
83
+ let tries = 0;
84
do {
85
await hamburgerButton.click();
86
await driver.sleep(SLEEP_TIME);
87
// nav on mobile is a new list, the desktop nav comes first in the DOM but is hidden
88
[_desktopRN, releaseNotes] = await waitForXPath(releaseNotesXPath);
- } while (releaseNotes == null);
89
+ tries += 1;
90
+ } while (releaseNotes == null && tries < MAX_TRIES);
91
const [_desktopINN, initialNextNode] = await waitForXPath(nextNodeXPath);
92
await driver.executeScript('arguments[0].scrollIntoView()', releaseNotes);
93
console.log('\nClicking Release Notes div');
0 commit comments