Examples of val()


Examples of org.jsoup.nodes.Element.val()

      pagination.setPrev(Integer.parseInt(previous.val()));
    }

    Element next = element.nextElementSibling();
    if (next != null && isDateWithinRange(next)) {
      pagination.setNext(Integer.parseInt(next.val()));
    } else {
      pagination.setNext(-1);
    }
    pagination.setFirst(0);
    pagination.setLast(Integer.parseInt(element.lastElementSibling().val()));
View Full Code Here

Examples of org.jsoup.nodes.Element.val()

    public void searchBoxContainsUserQuery() throws Exception {
        Document html = performSearch("someterm");

        Element searchInputBox = html.select("form input[name=q]").first();
        assertThat(searchInputBox, is(notNullValue()));
        assertThat(searchInputBox.val(), is("someterm"));
    }

    @Test
    public void displaysPaginationControl() throws Exception {
        buildManySearchEntries(15);
View Full Code Here

Examples of org.jsoup.nodes.Element.val()

    }

    public String csrfValue() {
        Element csrfElement = html.select("#csrf").first();
        if (csrfElement != null) {
            return csrfElement.val();
        } else {
            return "";
        }
    }
}
View Full Code Here

Examples of org.jsoup.nodes.Element.val()

    }

    public void hasRegistrationFields(String name, String email) {
        Element nameInputElement = html.select("#name").first();
        assertNotNull(nameInputElement);
        assertEquals(name, nameInputElement.val());

        Element emailInputElement = html.select("#email").first();
        assertNotNull(emailInputElement);
        assertEquals(email, emailInputElement.val());
    }
View Full Code Here

Examples of org.jsoup.nodes.Element.val()

        assertNotNull(nameInputElement);
        assertEquals(name, nameInputElement.val());

        Element emailInputElement = html.select("#email").first();
        assertNotNull(emailInputElement);
        assertEquals(email, emailInputElement.val());
    }
}
View Full Code Here

Examples of org.jsoup.select.Elements.val()

    @Test public void handlesTextArea() {
        Document doc = Jsoup.parse("<textarea>Hello</textarea>");
        Elements els = doc.select("textarea");
        assertEquals("Hello", els.text());
        assertEquals("Hello", els.val());
    }

    @Test public void preservesSpaceInTextArea() {
        // preserve because the tag is marked as preserve white space
        Document doc = Jsoup.parse("<textarea>\n\tOne\n\tTwo\n\tThree\n</textarea>");
View Full Code Here

Examples of org.jsoup.select.Elements.val()

    @Test public void handlesTextArea() {
        Document doc = Jsoup.parse("<textarea>Hello</textarea>");
        Elements els = doc.select("textarea");
        assertEquals("Hello", els.text());
        assertEquals("Hello", els.val());
    }

    @Test public void preservesSpaceInTextArea() {
        // preserve because the tag is marked as preserve white space
        Document doc = Jsoup.parse("<textarea>\n\tOne\n\tTwo\n\tThree\n</textarea>");
View Full Code Here

Examples of org.zkoss.ztl.JQuery.val()

        keyPressEnter(formulaBar);
       
        // Verify
        cell_L_13 = getCell_L13();
        clickCell(cell_L_13);
        verifyEquals(formulaBar.val(), cell_L_13.text());
    }

    private JQuery getCell_L13() {
        return getSpecifiedCell(11, 12);
    }
View Full Code Here

Examples of tokyocabinet.BDBCUR.val()

      throw new RuntimeException("Key should exist but failed to jump to it's location");
   
    if(!Arrays.equals(cursor.key(),key.getBytes()))
      throw new TException("key mismatch "+key+" vs "+cursor.key2());
 
    byte[] value = cursor.val();
   
    //delete
    if(!cursor.out())
      throw new TException(bdb.errmsg());
   
View Full Code Here

Examples of tokyocabinet.BDBCUR.val()

    if(!Arrays.equals(cursor.key(),key.getBytes()))
      return new byte[]{};
 
   
    //save value
    byte[] value = cursor.val();
     
   
    //delete
    if(!cursor.out())
      throw new TException(bdb.errmsg());
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.