Selenium: assert title on the page

Last updated on:


public static void assertTtitle(String title){
        LOGGER.info("Title is:" + title);
        WebDriverWait wait = new WebDriverWait(getCurrentDriver(), 10);
        wait.until(ExpectedConditions.titleContains(title));
       // assertTrue(getCurrentDriver().getTitle().startsWith(title));
    }
View Comments

Leave a Comment

Use markdown or basic HTML and be nice.