With playwright, I've used the codegen to generate code. Now, there is an element, that seems to be identified properly with the id of it, but when the code is run using playwright, the element doesn't seem to be clicked. The other issue I'm facing is with dealing with timeout issues. In the photo added, there is multiple clicks that I've to perform to go through topics by clicking the "NEXT" button on the UI, but after going through couple, the code timeouts. I've added the waitForTimeout after having the issue. But that doesn't even work. How should I handle both of these things?
This thread is trying to answer question "How to handle element clicking trouble and timeout issues while using Playwright code generated by codegen?"
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].