Christian Benseler
Christian Benseler

Reputation: 8075

WebdriverIO: press button, move mouse and then release?

Anyone knows if it's possible to simulate the following user interaction in an element using WebdriverIO:

What I need is to simulate a 'swipe' action with the mouse. I can't use swipeLeft (or right), thw following error is outputed:

Underlying driver does not implement advanced user interactions yet.

I guess that the selenium-standalone server I'm running does not have support for this.

Upvotes: 2

Views: 5901

Answers (1)

Linh Nguyen
Linh Nguyen

Reputation: 1138

1) click with left button and keep button pressed: buttonDown

2) move mouse with button pressed: moveTo

3) release the button: buttonUp

Upvotes: 1

Related Questions