mirror of
https://github.com/gnh1201/welsonjs.git
synced 2025-05-11 20:21:03 +00:00
Update chrome.js
This commit is contained in:
parent
1a272bd49a
commit
e6fac41e8c
|
@ -1258,6 +1258,11 @@ var ChromeObject = function(interfaces) {
|
|||
this.sendEnterKey = function() {
|
||||
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();
|
||||
};
|
||||
|
|
Loading…
Reference in New Issue
Block a user