I would like to double click on an element but I could not find a way to do this in the document API. I found some references dating back to 2013 but I know things have changed a lot.
Can someone help and tell me how I can perform a double click.
Thanks
doubleClick(element(by.id("double-click"))). perform(); browser. actions(). mouseDown(element(by.id("drag1")).
Always remember that protractor
is a wrapper around webdriverjs.
doubleClick()
is available in browser.actions()
:
browser.actions().doubleClick(element(by.id('mybutton'))).perform();
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With