mirror of
https://github.com/gnh1201/welsonjs.git
synced 2025-05-30 13:37:03 +00:00
Update chrome.js
This commit is contained in:
parent
297a116923
commit
2b5a4ad0ae
|
@ -497,6 +497,10 @@ var ChromeObject = function() {
|
|||
return page.url;
|
||||
};
|
||||
|
||||
this.getCurrentDomain = function() {
|
||||
return this.getEvaluatedValue('document.domain');
|
||||
};
|
||||
|
||||
this.triggerEvent = function(eventName, selector) {
|
||||
return this.evaluate('document.querySelector("' + selector + '").dispatchEvent(new Event("' + eventName + '"))');
|
||||
};
|
||||
|
|
Loading…
Reference in New Issue
Block a user