Rayrun
← Back to Discord Forum

hey, bumped with issue for performing click action - what's could be wrong with that ?

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?"

5 replies

i use last playwright version, and chrome

wishinfinite
wishinfinite

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.

https://youtu.be/y0k1ez_tq0M

i'm pretty sure that it's not overlapped

wishinfinite
wishinfinite

Let's try dispatch event click as I shown in above video.

wishinfinite
wishinfinite

If it does not work we will look for something else.

TwitterGitHubLinkedIn
AboutQuestionsDiscord ForumBrowser ExtensionTagsQA Jobs

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].