Closes the modal popup
Adds a wait time to ensure the modal popup opens before attempting to close it.
This commit is contained in:
parent
817f81734d
commit
4aa48a1995
1 changed files with 2 additions and 0 deletions
|
|
@ -68,6 +68,8 @@ export class HomePage extends BasePage {
|
||||||
}, zip);
|
}, zip);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Wait until modal pop up opens and close pop up
|
||||||
|
await this.page.waitForTimeout(5000);
|
||||||
if (await this.cusmodalPopup.isVisible()) {
|
if (await this.cusmodalPopup.isVisible()) {
|
||||||
await this.closePopupButton.click();
|
await this.closePopupButton.click();
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue