welsonjs/toolkit.demo.js

18 lines
456 B
JavaScript
Raw Normal View History

2022-04-20 05:10:43 +00:00
// toolkit.demo.js
2022-04-20 05:12:21 +00:00
// This example includes Microsoft Edge controls and mouse clicks.
2022-04-20 05:10:43 +00:00
2022-04-20 05:10:24 +00:00
var Chrome = require("lib/chrome");
var Toolkit = require("lib/toolkit");
2021-08-09 08:00:56 +00:00
2022-04-20 05:10:24 +00:00
function main() {
var wbInstance = Chrome.create().setVendor("msedge").open("https://google.com");
sleep(5000);
//console.log(wbInstance.getHTML("body"));
wbInstance.focus();
wbInstance.traceMouseClick();
Toolkit.sendClick("Google", 30, 30, 1);
2021-08-09 08:00:56 +00:00
}
2022-04-20 05:10:24 +00:00
exports.main = main;