Examples of click()


Examples of com.gargoylesoftware.htmlunit.html.HtmlDivision.click()

    public void testServerClick() throws IOException, SAXException {
        HtmlPage page = environment.getPage("/dropDownMenu_serverMode.jsf");
        HtmlDivision item = (HtmlDivision) page.getElementById("form:saveAll");
        assertNotNull(item);
        DropDownMenuBean.setCurrent("none");
        item.click();

        item = (HtmlDivision) page.getElementById("form:saveAll");
        assertNotNull(item);
        assertEquals("action", DropDownMenuBean.getCurrent());
    }
View Full Code Here

Examples of com.gargoylesoftware.htmlunit.html.HtmlElement.click()

    }

    @Override
    protected HtmlPage submit(HtmlPage page) throws IOException {
        HtmlElement submit = (HtmlElement) page.getElementById("form:submit");
        return submit.click();
    }

    @Test
    public void testSubmitTooShortValue() throws Exception {
        HtmlPage page = submitValueAndCheckMessage("", containsString(GraphBean.SHORT_MSG));
View Full Code Here

Examples of com.gargoylesoftware.htmlunit.html.HtmlImage.click()

    public void testCalendarScrolling() throws Exception {
        HtmlPage page = environment.getPage("/calendarTest.jsf");

        HtmlImage calendarPopupButton = (HtmlImage) page.getElementById("form:calendarPopupButton");
        assertNotNull(calendarPopupButton);
        page = (HtmlPage) calendarPopupButton.click();
        HtmlElement calendarHeaderElement = page.getHtmlElementById("form:calendarHeader");
        assertNotNull("form:calendarHeader element missed.", calendarHeaderElement);

        HtmlTableDataCell nextTD = null;
        List<?> tds = calendarHeaderElement.getByXPath("table/tbody/tr/td");
View Full Code Here

Examples of com.gargoylesoftware.htmlunit.html.HtmlInput.click()

      } else {        
         el1.type(IMAGE_TO_UPLOAD);
      }     
     
      final HtmlInput el2 = (HtmlInput) uploadPage.getFirstByXPath(FILE_UPLOAD_UPDATE);
      final HtmlPage finishPage = (HtmlPage) el2.click();
      final HtmlElement el3 = (HtmlElement) finishPage.getFirstByXPath(FILE_UPLOAD_RESPONSE);
     
      assertFalse("Page should contain \"Successfully updated\"", el3 == null);
   }
  
View Full Code Here

Examples of com.gargoylesoftware.htmlunit.html.HtmlOption.click()

      HtmlSelect htmlSelect = (HtmlSelect)element;
     
      String optionValue = getSelectItemValue(componentID);
     
      HtmlOption htmlOption = htmlSelect.getOptionByValue(optionValue);
      htmlOption.click();
   }
  
   private HtmlRadioButtonInput findRadioInput(String componentID, String optionToSelect)
   {
      String clientID = jsfServerSession.getClientIDs().findClientID(componentID);
View Full Code Here

Examples of com.gargoylesoftware.htmlunit.html.HtmlRadioButtonInput.click()

   private void clickRadio(String componentID) throws IOException
   {
      String itemValue = getSelectItemValue(componentID);
      String parentID = parentElementClientID(componentID);
      HtmlRadioButtonInput radioInput = findRadioInput(parentID, itemValue);
      radioInput.click();
   }
  
   private String getSelectItemValue(String componentID)
   {
      UIComponent uiComponent = jsfServerSession.findComponent(componentID);
View Full Code Here

Examples of com.gargoylesoftware.htmlunit.html.HtmlSpan.click()

      String hiddenStyle = nameInput.getStyleAttribute();
      assertTrue("Input control not hidden as expected: ["+hiddenStyle+"]",
              hiddenStyle.contains("display:none") || hiddenStyle.contains("display: none"));
     
      // Activate control - click on outside table control
      span.click();
     
      // Make sure input control is now visible
      String visibleStyle = nameInput.getStyleAttribute();
      assertFalse("Input control not visible as expected: ["+visibleStyle+"]",
              visibleStyle.contains("display:none") || visibleStyle.contains("display: none"));
View Full Code Here

Examples of com.gargoylesoftware.htmlunit.html.HtmlSubmitInput.click()

            for (FormInputValue formVal : formVals) {
                HtmlInput input = form.getInputByName(formVal.getInputName());
                formVal.handleInput(input);
            }
            HtmlSubmitInput submit = form.getInputByValue("submit");
            page = submit.click();
            return this;
        }
    }
   
    protected class ResponseAssertion {
View Full Code Here

Examples of com.gistlabs.mechanize.document.link.Link.click()

   
    AbstractDocument page = agent().get("http://test.com");
    assertEquals(1, page.links().size());
    Link link = page.links().find(byIdOrClass("t"));
    assertNotNull(link);
    Resource myPage = link.click();
    assertEquals("My Page", myPage.getTitle());
  }

  @Test
  public void testDontFind() {
View Full Code Here

Examples of com.google.gwt.dom.client.ButtonElement.click()

        failNow(failMsg);
      }
    };

    DOM.setEventListener(btn, listener);
    btn.click();
  }
}
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.