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

double click doesn't work in devtools protocol #5904

Closed
mgrybyk opened this issue Sep 30, 2020 · 3 comments · Fixed by #6927
Closed

double click doesn't work in devtools protocol #5904

mgrybyk opened this issue Sep 30, 2020 · 3 comments · Fixed by #6927
Assignees
Labels
Bug 🐛 devtools DevTools protocol

Comments

@mgrybyk
Copy link
Member

mgrybyk commented Sep 30, 2020

Environment (please complete the following information):

  • WebdriverIO version: 6.5.0
  • Automation Protocol devtools

Config of WebdriverIO
automationProtocol: "devtools"

Describe the bug
double click doesn't work as expected with devtools implementation of performActions

To Reproduce

browser.url("http://demo.guru99.com/test/simple_context_menu.html");
let elem = browser.$("//button[text()='Double-Click Me To See Alert']");
elem.waitForClickable({ timeout: 2000 });
elem.doubleClick();
browser.pause(5000);

alert should appear in case of successful doubleclick

Expected behavior
double click should be treated as double click not just to separate clicks

Additional context
performActions works as expected, it clicks two times in a row on the element. I think it's an issue with how Puppeteer sends click events with synthetic MouseEvent.

@mgrybyk mgrybyk added Bug 🐛 devtools DevTools protocol labels Sep 30, 2020
@mgrybyk
Copy link
Member Author

mgrybyk commented Sep 30, 2020

I have a suggestion on how to fix doubleclick.

  1. adopt elementClick to accept options
  2. create doubleClick command that would trigger elementClick and pass { clickCount : 2 }
  3. call devtools doubleClick command in webdriverio doubleClick command if automation protocol is devtools

@christian-bromann
Copy link
Member

Sounds like a plan, thanks @mgrybyk !

@christian-bromann
Copy link
Member

fixed in #6927

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

Successfully merging a pull request may close this issue.

2 participants