Update chrome.js

This commit is contained in:
Namhyeon Go 2021-07-22 10:42:32 +09:00 committed by GitHub
parent 2c308bad31
commit 94787a1305
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -465,6 +465,10 @@ var ChromeObject = function() {
return page.url;
};
this.triggerEvent = function(eventName, selector) {
return this.evaluate('document.querySelector("' + selector + '").dispatchEvent(new Event("' + eventName + '"))');
};
this.create();
};