Skip to content

Commit

Permalink
Merge pull request #14516 from newrelic/clark/add-sleep-to-webdriver
Browse files Browse the repository at this point in the history
Clark/add sleep to webdriver
  • Loading branch information
clarkmcadoo authored Sep 7, 2023
2 parents dce455a + 1d93b58 commit 68fa290
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions scripts/actions/webdriver-desktop.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,8 @@ const collapserTest = async () => {
const [firstCollapser, secondCollapser] = await waitForXPath(
'//h5[contains(@id, "collapser")]/ancestor::button'
);
// Ensure page loads
await driver.sleep(500);
const { y: initialTop } = await secondCollapser.getRect();
console.log('clicking first collapser');
await firstCollapser.click();
Expand Down

0 comments on commit 68fa290

Please sign in to comment.