Package com.gargoylesoftware.htmlunit.html

Examples of com.gargoylesoftware.htmlunit.html.HtmlSpan


    public void testAgeGreaterThan() throws IOException {
        nameInputText.setText("abc");
        ageInputText.setText("26");
        zipInputText.setText("12345");
        HtmlPage result = button.click();
        HtmlSpan span = (HtmlSpan)result.getElementById("ageMessage");
        assertEquals("must be less than or equal to 25", span.asText());
    }
View Full Code Here


    public void testZipAlphabets() throws IOException {
        nameInputText.setText("abc");
        ageInputText.setText("20");
        zipInputText.setText("abcde");
        HtmlPage result = button.click();
        HtmlSpan span = (HtmlSpan)result.getElementById("zipMessage");
        assertEquals("must match \"[0-9]{5}\"", span.asText());
    }
View Full Code Here

    public void testZipLessNumbers() throws IOException {
        nameInputText.setText("abc");
        ageInputText.setText("20");
        zipInputText.setText("1234");
        HtmlPage result = button.click();
        HtmlSpan span = (HtmlSpan)result.getElementById("zipMessage");
        assertEquals("must match \"[0-9]{5}\"", span.asText());
    }
View Full Code Here

    public void testZipMoreNumbers() throws IOException {
        nameInputText.setText("abc");
        ageInputText.setText("20");
        zipInputText.setText("123456");
        HtmlPage result = button.click();
        HtmlSpan span = (HtmlSpan)result.getElementById("zipMessage");
        assertEquals("must match \"[0-9]{5}\"", span.asText());
    }
View Full Code Here

    public void testZipBoundary() throws IOException {
        nameInputText.setText("abc");
        ageInputText.setText("20");
        zipInputText.setText("12345");
        HtmlPage result = button.click();
        HtmlSpan span = (HtmlSpan)result.getElementById("zipMessage");
        assertEquals("", span.asText());
    }
View Full Code Here

    @Test
    @SpecAssertion(section = CONVERSATION_CONTEXT, id = "a")
    public void testConversationActiveDuringNonFacesRequest() throws Exception {
        WebClient client = new WebClient();
        HtmlPage page = client.getPage(getPath("cloud.jsf"));
        HtmlSpan span = getFirstMatchingElement(page, HtmlSpan.class, "cloudName");
        assert span.getTextContent().equals(Cloud.NAME);
    }
View Full Code Here

TOP

Related Classes of com.gargoylesoftware.htmlunit.html.HtmlSpan

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.