Skip to content

Add wait option #71

Open
Open
@roniemartinez

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

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or requesthelp wantedExtra attention is needed

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions