Update chrome.js

This commit is contained in:
Namhyeon Go 2022-02-10 13:25:58 +09:00
parent 82713e1588
commit 6e38fe1191

View File

@ -1166,7 +1166,8 @@ var ChromeObject = function(interfaces) {
};
this.mouseClick = function(x, y) {
this.oAutoIt.callFunction("MouseMove", [x, y]);
var screenPosition = this.getScreenPosition();
this.oAutoIt.callFunction("MouseMove", [screenPosition.x + x, screenPosition.y + y]);
this.oAutoIt.callFunction("MouseClick", ["left"]);
};
@ -1212,6 +1213,6 @@ exports.startDebug = function(url, proxy, profileName, debuggingPort, isPreventP
;
};
exports.VERSIONINFO = "Chrome Web Browser Debugging Interface (chrome.js) version 0.2";
exports.VERSIONINFO = "Chrome Web Browser Debugging Interface (chrome.js) version 0.3";
exports.global = global;
exports.require = global.require;