@BeforeMethod public void writeTextMsgIfWindowIsDisplayed() {
try {
WebDriverWait wait = new WebDriverWait(driver, 5);
WebElement button = wait.until(ExpectedConditions.presenceOfElementLocated(windowOff));
if (button.getAttribute("data-bbc-title").contains("dismiss")) {
button.click();
}
} catch (Exception e) {
e.printStackTrace();
}
}