Call log: - waiting for locator('#adminMenu_button') - locator resolved to <div id="adminMenu_button" data-test="adminMenu_butto…>…</div> - attempting click action - waiting for element to be visible, enabled and stable - element is visible, enabled and stable - scrolling into view if needed - done scrolling - performing click action i could see that it click on this element, but fails by timeout
This thread is trying to answer question "Why is the click action on an element failing by timeout in Playwright even though the element is visible, enabled, and stable?"
There may be issue that your element is getting overlapped by another element.
Try using click with force or if that also is not working you can go for dispatchEvent.
You can apply the process I explain in My YouTube video.
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].