Getting " Request failed with status 500 due to javascript error: javascript error: Cannot read property 'dispatchEvent' of undefined"
const wheel = function (selector) {
browser.execute(function (selector) {
document.querySelectorAll('div[role="rowgroup"] div[role="presentation"] img')[2].dispatchEvent(new WheelEvent('wheel', {
view: window,
bubbles: true,
cancelable: true,
deltaY: 72
}))
}, selector)
}