question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Click is not recognized sporadically in the 3.3.0 version

See original GitHub issue

What are you trying to achieve?

The test tries to click the sign in button on a login page.

What do you get instead?

When I’m watching closely the scenario run, it is obvious that the click happened as the usual authentication URL appears after login, however, it seems from the logs that the click was not recognized and the test retries it (but it doesn’t succeed as obviously the sign in button is not visible anymore).

Important notes

  • the issue is sporadic but happens quite often
  • the issue is only reproducible with the Codecept 3.3.0 version (I tried the 3.2.3 version as well and the issue did not occurr)
  • so far I experienced this issue only with this one element

Provide console output if related. Use --verbose mode for more details.

    I wait for enabled "#submit", 30
    I click "#submit"
    [1] Retrying... Attempt #2
    [1] Retrying... Attempt #3
    [1] Retrying... Attempt #4
    [1] Retrying... Attempt #5
    [1] Retrying... Attempt #6
    [1] Error | Error: Clickable element "#submit" was not found by text|CSS|XPath
    [1] Error | Error: Clickable element "#submit" was not found by text|CSS|XPath
    [1] Error | Error: Clickable element "#submit" was not found by text|CSS|XPath
    [1] Error | Error: Clickable element "#submit" was not found by text|CSS|XPath
    [1] Error | Error: Clickable element "#submit" was not found by text|CSS|XPath
    [1] Error | Error: Clickable element "#submit" was not found by text|CSS|XPath

Details

  • CodeceptJS version: 3.3.0
  • NodeJS Version: 14.17.5
  • Operating System: Windows 10
  • playwright version (if related): 1.18.1

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:6 (2 by maintainers)

github_iconTop GitHub Comments

4reactions
DavertMikcommented, Feb 16, 2022

This could be realted to Playwright 1.18 or because of timeout was lowered to 5s

Please try to increase timeout value in Playwright config:

helpers: {
  Playwright: {
    /// ... 
    timeout: 20000,
  }
}
1reaction
verebdcommented, Mar 3, 2022

Thank you @DavertMik , increasing the timeout worked.

Read more comments on GitHub >

github_iconTop Results From Across the Web

.find not working, after click event, .html shows the component ...
I have a button that, when clicked, triggers a . The actual component is working, but the test is not. Components export default...
Read more >
USB Device Not Recognized Error on Windows 10 [FIXED]
Are you getting a “USB device not recognized ” error whenever you plug in a USB device? In this video tutorial, I'll show...
Read more >
Why is this jQuery click function not working? - Stack Overflow
It sounds stupid, but sometimes we think that jQuery is not working and all that stuffs and the problem is on the positioning...
Read more >
Docker for Windows 3.x release notes
This page contains release notes for Docker Desktop for Windows 3.x. ... Fixed an issue where the diagnostics were sometimes not uploaded correctly...
Read more >
How to Fix XAMPP If It's Not Working (3 Common Solutions)
You can also access the error log by by clicking on the Logs button next to the Apache Config button: The XAMPP control...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found