-
Notifications
You must be signed in to change notification settings - Fork 672
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
Unable to detect touchable device #2448
Comments
Hi @ferencbeutel, could you please specify your TestCafe (you can get it with |
Hi @AndreyBelym, I am using testcafe 0.19.2 and chrome version 66.0.3359.139. |
I've reproduced it in the latest TestCafe and Chrome. Looks like commands required to start touch emulation changed again, I'll fix it today. |
Hey @AndreyBelym, thanks for your quick response! |
This thread has been automatically locked since it is closed and there has not been any recent activity. Please open a new issue for related bugs or feature requests. We recommend you ask TestCafe API, usage and configuration inquiries on StackOverflow. |
…vExpress#2454) * Fix touch emulation in the recent Chrome * Add a test * Use about:blank * Update index-test.js * Fix test
Are you requesting a feature or reporting a bug?
thats a good question, probably reporting a bug
What is the current behavior?
There seems to be no way to correctly detect a touchable device when using chrome mobile emulation
What is the expected behavior?
returns true when chrome mobile emulator is used
How would you reproduce the current behavior (if this is a bug)?
run testcafe with chrome mobile emulation (tested with iphone X)
Specify your
tested on osx 10.13.12 and ubuntu 16.04
0.19.2
8.9.1
66.0.3359.139
Hello there,
our application is detecting touch devices to run different javascript code for the page initialization. We want to test that the touchable version is working fine using testcafe. In order to detect a touch device, we use the following logic:
This works fine in the chrome devtools for example. Select a mobile device, reload the page and executing the code will return true.
However, when we use chrome mobile emulation provided by testcafe, the code returns false and there seem to be 0 registered touch event listener in the document.
Is there a better way to detect touch devices or is this an issue with testcafe mobile emulation?
The text was updated successfully, but these errors were encountered: