There could be several reasons why a click action doesn't send a request in @playwright/test:
timeout
parameter.await page.click('selector', { timeout: 5000 });
noWaitAfter
flag to true
. Use this option only in exceptional cases.await page.click('selector', { noWaitAfter: true });
trial
parameter to perform actionability checks without actually performing the action.await page.click('selector', { trial: true });
force
option to disable non-essential actionability checks. However, use this as a last resort since it may lead to unexpected behavior.await page.click('selector', { force: true });
By addressing these possible reasons, you can ensure that click actions send requests as expected in your Playwright tests.
If you still have questions, please ask a question and I will try to answer it.
Rayrun is a community for QA engineers. I am constantly looking for new ways to add value to people learning Playwright and other browser automation frameworks. If you have feedback, email [email protected].