Update chrome.js

This commit is contained in:
Namhyeon Go 2022-08-29 11:14:07 +09:00 committed by GitHub
parent 1a272bd49a
commit e6fac41e8c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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();
};