mirror of
https://github.com/gnh1201/welsonjs.git
synced 2025-05-14 05:31:03 +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.getShadowRootSelector = function(selectors) {
|
||||
var s = "').shadowRoot.querySelector('";
|
||||
return ".querySelector('" + selectors.join(s) + "')";
|
||||
};
|
||||
|
||||
this.create();
|
||||
};
|
||||
ChromeObject.prototype = new STD.EventableObject();
|
||||
|
|
Loading…
Reference in New Issue
Block a user