Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Programmatic clicks and SwiftClick #10

Open
prashantpalikhe opened this issue Jan 23, 2017 · 1 comment
Open

Programmatic clicks and SwiftClick #10

prashantpalikhe opened this issue Jan 23, 2017 · 1 comment

Comments

@prashantpalikhe
Copy link
Contributor

We are performing automated tests in the cloud using Perfecto Mobile. But, the tests fail because the programmatic clicks need to performed twice for the desired action to be performed. This is because of the ghost click prevention mechanism of SwiftClick.

  1. First click goes fine. _clickedAlready is set to true
  2. Second click is prevented. Because _clickedAlready is set to true. _clickedAlready is set to false
  3. Third click goes fine.

Now my question is, is this ghost click prevention still necessary? Or can we remove that chunk of code. From my tests on iOS devices, that block of code is redundant. Can you perform some tests on Android devices?

@munkychop
Copy link
Owner

Hey thanks for the report. Currently I don't have access to any Android devices, but will look into potentially removing the ghost click code, as it is – as you mention – most probably redundant by now. And, if I recall correctly, Chrome on Android no longer has a click event delay anyway.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants