Update toolkit.js #21

This commit is contained in:
Namhyeon Go 2021-08-22 16:44:26 +09:00
parent 7563e0abd1
commit 7d4467fe22

View File

@ -41,4 +41,18 @@ exports.sendClick = function(wName, x, y, repeat) {
exports.sendKeys = function(wName, s) {
return Toolkit.getInterface().SendKeys(wName, s);
};
};
// https://html.spec.whatwg.org/multipage/timers-and-user-prompts.html
exports.alert = function(message) {
return Toolkit.getInterface().Alert(message);
};
exports.confirm = function(message) {
return Toolkit.getInterface().Confirm(message);
};
exports.prompt = function(message, _default) {
return Toolkit.getInterface().Prompt(message, _default);
};