Is there a way to send out mouse wheel events in protractor? I looked on the web but the only thing i could find was the scrollIntoView method. I really need to be able to invoke wheel events so i can test them.
There is no "mouse wheel" action specified by the selenium webdriver. You should use .scrollTo(), .scrollBy() and .scrollIntoView() through the browser.executeScript() interface. There is also mouseMove relevant browser action, but that would effectively scroll into view of the element under the hood:
browser.actions.mouseMove(elm).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