Open
Description
Some JS-enabled websites has multiple pop-ups (agree dialog -> newsletter dialog -> subscribe dialog -> now you can use the website) and these dialogs takes time. Adding wait will make sure that the setup handlers will wait first.
Option 1: Explicit
@select(text="AGREE", setup=True, wait=1000) # or wait_for="visible"
def handler(element, page):
with page.expect_navigation():
element.click()
Option 2: Implicit
This will be done in the background by Dude