Rayrun
← Back to Discord Forum

Playwright hangs on seemingly normal locator call

I'm automating a salesforce workflow. Running my spec file in debug mode and the debugger is correctly identifying the locator I want to click, but isn't clicking on it. What's more, the entire suite seems to hang on this particular selector and the default timeout never occurs.

my config timeout is set to 3 minutes, but the test will never expire gracefully.

Screenshot_2023-06-14_at_11.32.39_AM.png
Screenshot_2023-06-14_at_11.33.00_AM.png

This thread is trying to answer question "Why is playwright hanging on a seemingly normal locator call and not clicking on the element? Why is the test suite not expiring gracefully? Why does playwright not think the element is visible?"

1 reply

Follow up, I added expect(selectQuotePage.selectCustOptRadBtn).toBeVisible(); and the test failed, so it seems that playwright doesn't think this element is visible

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