mirror of
https://github.com/gnh1201/welsonjs.git
synced 2025-05-14 21:51:04 +00:00
Update toolkit.js
This commit is contained in:
parent
20571742e7
commit
db1cd36608
|
@ -13,24 +13,24 @@ var ToolkitObject = function() {
|
||||||
console.warn("WelsonJS.Toolkit is disabled");
|
console.warn("WelsonJS.Toolkit is disabled");
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
this.sendClick = function(wName, x, y, retry) {
|
this.sendClick = function(wName, x, y, retry) {
|
||||||
var i = 0;
|
var i = 0;
|
||||||
while (i < retry) {
|
while (i < retry) {
|
||||||
this.interface.SendClick(wName, x, y);
|
this.interface.SendClick(wName, x, y);
|
||||||
i++;
|
i++;
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
this.sendKeys = function(wName, s) {
|
this.sendKeys = function(wName, s) {
|
||||||
return this.interface.SendKeys(wName, s);
|
return this.interface.SendKeys(wName, s);
|
||||||
};
|
};
|
||||||
|
|
||||||
// https://html.spec.whatwg.org/multipage/timers-and-user-prompts.html
|
// https://html.spec.whatwg.org/multipage/timers-and-user-prompts.html
|
||||||
|
|
||||||
this.alert = function(message) {
|
this.alert = function(message) {
|
||||||
return this.interface.Alert(message);
|
return this.interface.Alert(message);
|
||||||
};
|
};
|
||||||
|
|
||||||
this.confirm = function(message) {
|
this.confirm = function(message) {
|
||||||
return this.interface.Confirm(message);
|
return this.interface.Confirm(message);
|
||||||
|
|
Loading…
Reference in New Issue
Block a user