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