Skip to content

postInteractionWait not working when the targeting an element in a popup model opened via clickSelectors #1480

@Rah1x

Description

@Rah1x

await page.waitForTimeout(postInteractionWait);

This thing is not working well when the targeting an element in a popup model opened via clickSelectors (using Puppeteer engine).

Solution I used to fix my problem:

if (typeof postInteractionWait === 'string') {
    await page.waitForSelector(postInteractionWait);
} else {
    await page.waitForTimeout(postInteractionWait);
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions