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.

Clicking does not work

See original GitHub issue

When I try using the click function in nightwatch.js, sometimes it does not work. For example,

        .waitForElementVisible('.test')
        .pause(500)
        .click('.test')

When I run the command in verbose, it states that the click was a success, but nightwatch.js didn’t actually click on the element; it didn’t go to the next page. What should I do to fix this?

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Comments:19 (1 by maintainers)

github_iconTop GitHub Comments

8reactions
akuji1993commented, May 26, 2017

This dev is pretty oblivious of this click issue while there are about 20 tickets that addressed this. In Selenium Webdriver, all of my clicks are working fine. When using Nightwatch and building the same test I did in vanilla Selenium, the clicks do not work. That doesn’t look like a Selenium issue, it looks like a Nightwatch issue. We might abandon using Nightwatch, since there’s obviously no good support from the developer and our tests are working a lot better in vanilla Selenium. Some issues are yours dude, not another libraries’.

4reactions
shenxianpengcommented, Feb 17, 2018

Yes, I need always add .pasue() after waitForElementVisible(), I do not how about others framework works, IMHO it doesn’t looks good.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Mouse pointer works but not able to click on Windows 10 / 11
Fix: Mouse pointer works but not able to click on Windows 10 / 11 · Fix 1 – Restart File explorer · Fix-2...
Read more >
FIX: Mouse click not working in Windows 10/11
How can I fix the mouse clicking problem? · Run the Hardware and Devices troubleshooter · Boot in Safe Mode · Uninstall and...
Read more >
How to Fix the Left Click Mouse Button Not Working on ...
How to Fix the Left Click Mouse Button Not Working on Windows 10 · 1. Fix a Corrupted User Profile · 2. Check...
Read more >
Mouse Clicks Not Registering? 14 Proven Ways To Fix It
How to Fix Mouse Click Not Registering? · Change Buttons Configurations · Lower High CPU usage · Disable USB Selective Suspend · Uninstall...
Read more >
Mouse Left-Click Button Not Working? Here's How to Fix It
Let's face it: Most left-click problems with mice are due to hardware failure. Unless you've accidentally enabled a particular setting in ...
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