0

获取“由于javascript错误,请求失败,状态为500:javascript错误:无法读取未定义的属性'dispatchEvent'”

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)
}
4

0 回答 0