Make mouse wheel in protractor

Is there a way to send mouse wheel events to the protractor? I looked on the Internet, but the only thing I could find was the scrollIntoView method. I really need to be able to reference wheel events so that I can test them.

+5
source share
1 answer

There is no mouse wheel action indicated by selenium web selenium. You must use .scrollTo() , .scrollBy() and .scrollIntoView() through the browser.executeScript() interface. There is also a mouseMove corresponding browser action, but it effectively scrolls as an element under the hood:

 browser.actions.mouseMove(elm).perform(); 
+2
source

Source: https://habr.com/ru/post/1247506/