public override void ElementRun(IRootElement root, IWebBrowser browser, ITestElement elem)
        {
            Thread.Sleep(50);             // Chrome
            String script =
                @"return document.querySelector('print-preview-app').shadowRoot
	.querySelector('#sidebar').shadowRoot
	.querySelector('print-preview-button-strip').shadowRoot
	.querySelector('cr-button.cancel-button');"    ;

            var cancelButton = browser.ExecuteScriptObject(script);

            if (cancelButton is IWebElement cancelElem)
            {
                cancelElem.Click();
            }
            else
            {
                throw new ElementNotInteractableException("Cancel button in print window");
            }
        }