From my read of the docs, this should work, however the test sometimes passes and sometimes not, from the traces it seems the input does not get filled.
Thanks in advance.
This thread is trying to answer question "Why does a test sometimes pass and sometimes fail when trying to fill an input field using Playwright?"
Can you share the error or a sneakpeak of the trace?
https://playwright.dev/docs/api/class-page#page-wait-for-load-state
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 luc@ray.run.