Package com.gargoylesoftware.htmlunit.html

Examples of com.gargoylesoftware.htmlunit.html.HtmlButton


    assertNotNull(htmlSpan);

    HtmlInput htmlCalendarInput = (HtmlInput) page
        .getHtmlElementById(calendar.getClientId(facesContext)
            + "InputDate");
    HtmlButton htmlCalendarButton = (HtmlButton) page
        .getHtmlElementById(calendar.getClientId(facesContext)
            + "PopupButton");
    HtmlSpan htmlCalendarSpan = (HtmlSpan) page.getHtmlElementById(calendar
        .getClientId(facesContext)
        + "Popup");
View Full Code Here


        HtmlForm form = (HtmlForm) page.getForms().get(0);

        HtmlInput textField = form.getInputByName("name");
        textField.setValueAttribute("petra");

        HtmlButton button = (HtmlButton) form.getButtonsByName("submit").get(0);

        HtmlPage pageResponse = (HtmlPage) button.click();
       
        assertTrue(pageResponse.getWebResponse().getContentAsString().endsWith("</strong>Hello petra</body></html>"));
    }
View Full Code Here

      input.type(value);

      // Type #3 - CUSTOM save button
      if( customSaveID != null ) {
         // Find and Click save button
         HtmlButton saveButton = (HtmlButton)jsfClient.getElement(customSaveID);
         saveButton.click();     
      } else {
         // Check to see if buttons are visible
         HtmlDivision bar = (HtmlDivision)jsfClient.getElement(componentID+"bar");
         String buttonStyle = bar.getStyleAttribute();
         // Type #1 - NO BUTTONS
View Full Code Here

    if (element instanceof HtmlSubmitInput && !((HtmlSubmitInput) element).isDisabled()) {
      candidate = element;
    } else if (element instanceof HtmlImageInput && !((HtmlImageInput) element).isDisabled()) {
      candidate = element;
    } else if (element instanceof HtmlButton) {
      HtmlButton button = (HtmlButton) element;
      if ("submit".equalsIgnoreCase(button.getTypeAttribute()) && !button.isDisabled()) {
        candidate = element;
      }
    }

    return candidate != null;
View Full Code Here

TOP

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

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.