Update toolkit.js

This commit is contained in:
Namhyeon Go 2022-02-14 15:43:48 +09:00 committed by GitHub
parent 20571742e7
commit db1cd36608
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -13,24 +13,24 @@ var ToolkitObject = function() {
console.warn("WelsonJS.Toolkit is disabled");
}
};
this.sendClick = function(wName, x, y, retry) {
var i = 0;
while (i < retry) {
this.interface.SendClick(wName, x, y);
i++;
this.sendClick = function(wName, x, y, retry) {
var i = 0;
while (i < retry) {
this.interface.SendClick(wName, x, y);
i++;
}
};
this.sendKeys = function(wName, s) {
return this.interface.SendKeys(wName, s);
};
// https://html.spec.whatwg.org/multipage/timers-and-user-prompts.html
this.alert = function(message) {
return this.interface.Alert(message);
};
// https://html.spec.whatwg.org/multipage/timers-and-user-prompts.html
this.alert = function(message) {
return this.interface.Alert(message);
};
this.confirm = function(message) {
return this.interface.Confirm(message);