-
Notifications
You must be signed in to change notification settings - Fork 675
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
click() acting as rightClick() with device emulation 'touch=true' under native automation #8115
Comments
Hello @andrewh-agl , I can reproduce the issue. If you need to simulate a Please try replacing "touch" with "device" and let me know if it works for you. |
We appreciate you taking the time to share information about this issue. We reproduced the bug and added this ticket to our internal task queue. We'll update this thread once we have news. |
Thanks for looking at this issue @PavelMor25. I can confirm that explicitly setting a device fixes this specific issue in our test suite and also for the example in the issue reported above. Interestingly, Note however, that changing to emulation with |
Hello, Thank you for your feedback. We researched the issue and found that your ‘userAgent’ should be mobile or tablet to use the ‘touch’ emulator option. Regarding the other issue, please create a separate issue. |
What is your Scenario?
Clicking links/buttons when using device emulation with "touch:true" under native automation.
What is the Current behavior?
On MacOS, click()'s are loading the browser context menu (as if a right click or a "long" touch has been used) rather than actually clicking on the link.
I've also tried on Windows 10 and whilst the browser context menu does not appear (as it does on MacOS), the click() does not perform any visible action.
Note:
chrome:emulation:touch=true
has the issue, butchrome:emulation:touch=false
works as expected.--disable-native-automation
also fixes the issue.What is the Expected behavior?
A click() should act as a left mouse click or "quick" touch
What is the public URL of the test page? (attach your complete example)
https://testcafe.io/
What is your TestCafe test code?
Your complete configuration file
No response
Your complete test report
No response
Screenshots
Steps to Reproduce
run
testcafe 'chrome:emulation:width=500;height=700;touch=true' -e test.js
with the example code aboveTestCafe version
3.5.0
Node.js version
18.12.1
Command-line arguments
testcafe 'chrome:emulation:width=500;height=700;touch=true' -e test.js
Browser name(s) and version(s)
Chrome 120
Platform(s) and version(s)
macOS 12.6
Other
No response
The text was updated successfully, but these errors were encountered: