Examples of HtmlElement


Examples of ru.yandex.qatools.htmlelements.element.HtmlElement

    private NamedHtmlElementListPage page = new NamedHtmlElementListPage();

    @Test
    public void htmlElementListItemsShouldHaveCorrectNames() {
        for (int i = 0; i < NamedHtmlElementListPage.getCompaniesNumber(); i++) {
            HtmlElement item = page.getPopularCompaniesList().get(i);
            String expectedName = String.format("%s [%d]", NamedHtmlElementListPage.getPopularCompaniesListName(), i);

            assertThat(String.format("Item should have name %s", expectedName),
                    item.getName(), is(expectedName));
        }
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.