diff --git a/lib/chrome.js b/lib/chrome.js index 01a8762..6b6b2d2 100644 --- a/lib/chrome.js +++ b/lib/chrome.js @@ -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(); };