|
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);
}