mirror of
https://github.com/gnh1201/welsonjs.git
synced 2025-11-28 10:31:04 +00:00
Update chrome.js
This commit is contained in:
parent
1a272bd49a
commit
e6fac41e8c
|
|
@ -1259,6 +1259,11 @@ var ChromeObject = function(interfaces) {
|
||||||
this.evaluate('var ev=new KeyboardEvent("keydown",{bubbles:!0,cancelable:!0,keyCode:13});document.body.dispatchEvent(ev);');
|
this.evaluate('var ev=new KeyboardEvent("keydown",{bubbles:!0,cancelable:!0,keyCode:13});document.body.dispatchEvent(ev);');
|
||||||
};
|
};
|
||||||
|
|
||||||
|
this.getShadowRootSelector = function(selectors) {
|
||||||
|
var s = "').shadowRoot.querySelector('";
|
||||||
|
return ".querySelector('" + selectors.join(s) + "')";
|
||||||
|
};
|
||||||
|
|
||||||
this.create();
|
this.create();
|
||||||
};
|
};
|
||||||
ChromeObject.prototype = new STD.EventableObject();
|
ChromeObject.prototype = new STD.EventableObject();
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user