Skip to content

Conversation

@JMatej
Copy link
Collaborator

@JMatej JMatej commented May 10, 2022

  • there are two new modals which we should close:

Screenshot 2022-05-10 at 23 48 11

await page.goto(url, wait_until="networkidle")

await page.click("#onetrust-accept-btn-handler")
await page.click(".closeButton")
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@mrshu button does not contain id attr

@JMatej JMatej requested a review from mrshu May 10, 2022 21:52
@JMatej JMatej changed the title Close popups by clicking buttons on modals Close popups by clicking buttons in modals May 10, 2022

await page.click("#onetrust-accept-btn-handler")
await page.click(".closeButton")
await page.click("#pendo-button-59b176ac")
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@JMatej Is this guaranteed to be there at all times? If so, this surely makes sense 🙂

@mrshu
Copy link
Contributor

mrshu commented May 17, 2022

@JMatej just one last comment -- please feel free to merge this in 🙂

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants