我正在尝试将鼠标事件发送到我的屏幕外选项卡,但收到以下错误:
Error during experimental.offscreenTabs.sendMouseEvent:
Invalid or unexpected MouseEvent object
我的代码:
chrome.experimental.offscreenTabs.sendMouseEvent(tab.id, {
"type": "click",
"altKey": false,
"ctrlKey": false,
"shiftKey": false
}, {
"x": 10,
"y": 10
}, function () {
console.log("Mouse Event Sent");
});
有什么建议么?