Selenium Webdriver - нажмите в диалоговом окне
Dynamics 365 выдает подобное диалоговое окно, но не может нажать кнопку закрытия.
WebDriverWait inlineDialog = new WebDriverWait(driver, 60, 500);
driver.switchTo().activeElement();
WebElement closeButton = inlineDialog.until(ExpectedConditions.elementToBeClickable(By.xpath("//button[text()='Close' and @class='ms-crm-RefreshDialog-Button']")));
Thread.sleep(3000);
closeButton.click();