Examples of IElement


Examples of net.sourceforge.jwebunit.api.IElement

   
    assertNoProblem();
   
    // the map point has been created
    if (!doCheckPoints()) return;
    IElement point = assertHasMapPoint("target map point");
   
    {
      String target = getLabelIDForText("select address");
      assertLabeledFieldEquals(target, "Wellington, New Zealand");
      setLabeledFormElementField(target, "Auckland, New Zealand");
    }
   
    assertNoProblem();
    IElement point2 = assertHasMapPoint("target map point");
   
    // TODO do they refer to the same element?
    assertEquals(point, point2);
     
  }
View Full Code Here

Examples of net.sourceforge.jwebunit.api.IElement

   * @throws Exception
   */
  public void testHasMap() throws Exception {
    beginAtSitemapThenPage("Home");
   
    IElement map = assertHasMap("Target Map");
   
    // but no map points are generated yet
    assertHasNoMapPoint("Target Map");
    assertHasNoMapPoint(map, "Target Map");
  }
View Full Code Here

Examples of net.sourceforge.jwebunit.api.IElement

    }
   
    assertNoProblem();
   
    // the map point now exists
    IElement map = assertHasMap("Target Map");
    IElement point1 = assertHasMapPoint("Target Map");
    IElement point2 = assertHasMapPoint(map, "Target Map");
    assertEquals(point1, point2);
  }
View Full Code Here

Examples of net.sourceforge.jwebunit.api.IElement

    }
   
    assertNoProblem();
   
    // the map point now exists
    IElement map = assertHasMap("Target Map");
    IElement point1 = assertHasMapPoint("Target Map");
    IElement point2 = assertHasMapPoint(map, "Target Map");
    assertEquals(point1, point2);
  }
View Full Code Here

Examples of net.sourceforge.jwebunit.api.IElement

   * @param b the value to check against
   */
  public void assertLabeledFieldEqualsDouble(String id,
      double b) {
   
      IElement label = getLabel(id);
      assertNotNull("no label for id [" + id + "] found", label);
     
      String value = getLabeledFieldValue(id, label);
      assertNotNull("Label '" + id + "' had no value", value);
     
View Full Code Here

Examples of net.sourceforge.jwebunit.api.IElement

   */
  public void testMapPoint() throws Exception {
    beginAtSitemapThenPage("Frame");
    assertNoProblem();

    IElement map = assertHasMap("Map");
    assertHasMapPoint(map, "Map Point");

    // TODO no way to check the location of the map point?
  }
View Full Code Here

Examples of net.sourceforge.jwebunit.api.IElement

   *
   * @see InputForm
   * @param string the form title to search for
   */
  private void assertHasInputForm(String string) {
    IElement found = null;
    StringBuffer foundStrings = new StringBuffer();

    List<IElement> h2s = getElementsByXPath("//form/h2");
    for (IElement h2 : h2s) {
      foundStrings.append(h2.getTextContent()).append(", ");
View Full Code Here

Examples of net.sourceforge.jwebunit.api.IElement

    hasInputFormForText("Form visible");
   
    // another field is not
    List<IElement> list = hasInputFormForText("Form hidden");
    assertEquals(1, list.size());
    IElement form = list.get(0);
    assertFalse("Form is hidden", isDisplayed(form));
   
  }
View Full Code Here

Examples of net.sourceforge.jwebunit.api.IElement

    beginAtSitemapThenPage("Home");
    assertNoProblem();
   
    // one field is visible
    {
      IElement text = getFieldForLabel("Text visible");
      assertTrue("Text is hidden", isDisplayed(text));
    }

    // another field is not
    {
      IElement text = getFieldForLabel("Text hidden");
      assertFalse("Text is displayed", isDisplayed(text));
    }
  }
View Full Code Here

Examples of net.sourceforge.jwebunit.api.IElement

    beginAtSitemapThenPage("Home");
    assertNoProblem();
   
    // one field is visible
    {
      IElement button = getButtonWithText("Button visible");
      assertTrue("Button is hidden", isDisplayed(button));
    }
   
    // another field is not
    {
      IElement button = getButtonWithText("Button hidden");
      assertFalse("Button is displayed", isDisplayed(button));
    }
  }
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.