Package webdriver.pages

Examples of webdriver.pages.SayHelloPage


public class SampleWebDriverTest extends WebDriverTest {

    @Test
    public void iShouldBeAbleToSubmitAndSeeTheMessage() {
        SayHelloPage page = goToHelloWorldPage()
                .enterName("World")
                .clickSubmit();

        assertThat(page.message).containsText("Hello");
        assertThat(page.message).containsText("World");
View Full Code Here


        assertThat(page.error).containsTextExactly("Minimum size is 4");
    }

    @Test
    public void tagNameAssertExample() {
        SayHelloPage page = goToHelloWorldPage()
                .enterName("Caroline")
                .clickSubmit();

        assertThat(page.message).hasTagName("div");
        assertThat(page.message).isDiv();
View Full Code Here

        assertThat(page.message).isDiv();
    }

    @Test
    public void iCanDirectlyAccessTheSayHelloPage(){
        SayHelloPage page = goToSayHelloPage("Ben Verbeken");

        assertThat(page).hasTitle("SayHello");
        assertThat(page.message).containsTextExactly("Hello Ben Verbeken!");
    }
View Full Code Here

TOP

Related Classes of webdriver.pages.SayHelloPage

Copyright © 2018 www.massapicom. 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.