mirror of
https://github.com/gnh1201/welsonjs.git
synced 2025-02-06 15:04:58 +00:00
Update chrome.js
This commit is contained in:
parent
2c308bad31
commit
94787a1305
|
@ -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();
|
||||
};
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user