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.
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:
.scrollTo()
.scrollBy()
.scrollIntoView()
browser.executeScript()
mouseMove
browser.actions.mouseMove(elm).perform();
Source: https://habr.com/ru/post/1247506/More articles:Rails 4 - Enabling Supplier Assets - cssPass the variable to the Docker file from the docker-compose.yml file - dockerDEADLINE schedule policy not found - cCode as a system image (serialized runtime) vs Source (text) - smalltalkInvalid column name using dynamic SQL - sqlWhat are the disadvantages of ignoring and - htmlBabel ES2015 Object.assign config config in Laravel Elixir - ecmascript-6Why do these nestedelements disregard the HTML hierarchy? - htmlDisplay a text pyramid from a topographic image - cAre two triangles similar? - javascriptAll Articles