-
Notifications
You must be signed in to change notification settings - Fork 3.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[BUG] Click not working while using htmx #5888
Comments
Apparently Playwright clicks to fast for the page, and it doesn't consider it a normal click. Using delay makes it work: await page.click("text=Reload Parent OOB", {delay:100}); |
Apparently |
great finding @yury-s! |
Closing as per above. If a framework uses lazy hydration, it needs to enable controls once after the hydration is complete. Otherwise, clicking the buttons when the page is loaded over slow 3G does not work. In that case human is too fast, like Playwright is too fast on broadband. Interestingly, I just closed another (unrelated) issue that turned out to be an htmx bug: #5894 |
Context:
Creating this issue based on this question.
await page.click("text=Reload Parent OOB");
fails to click the element there. But if you take a look at the log, Playwright thinks it succeeded in doing that.The text was updated successfully, but these errors were encountered: