Package org.fluentlenium.core.domain

Examples of org.fluentlenium.core.domain.FluentWebElement.find()


  @Test
  public void should_generate_script_tag() {
    goToPage("html/default");
    FluentWebElement body = findFirst("body");
    assertThat(body.find("script")).hasSize(3);
  }
 
  @Test
  public void should_render_empty_cell() {
    goToPage("html/default");
View Full Code Here


   
    FluentWebElement firstHeadRow = getTable().find("thead").find("tr", 0);
    FluentWebElement secondHeadRow = getTable().find("thead").find("tr", 1);
   
    // All other footer cells must have the same content as the header ones
    assertThat(secondHeadRow.find("th", 0).getValue()).isEqualTo(firstHeadRow.find("th", 0).getValue());
    assertThat(secondHeadRow.find("th", 1).find("span")).hasSize(1);
    assertThat(secondHeadRow.find("th", 1).find("span").getAttribute("class")).contains("filter_column filter_text");
    assertThat(secondHeadRow.find("th", 2).getValue()).isEqualTo(firstHeadRow.find("th", 2).getValue());
    assertThat(secondHeadRow.find("th", 3).getValue()).isEqualTo(firstHeadRow.find("th", 3).getValue());
    assertThat(secondHeadRow.find("th", 4).getValue()).isEqualTo(firstHeadRow.find("th", 4).getValue());
View Full Code Here

    FluentWebElement firstHeadRow = getTable().find("thead").find("tr", 0);
    FluentWebElement secondHeadRow = getTable().find("thead").find("tr", 1);
   
    // All other footer cells must have the same content as the header ones
    assertThat(secondHeadRow.find("th", 0).getValue()).isEqualTo(firstHeadRow.find("th", 0).getValue());
    assertThat(secondHeadRow.find("th", 1).find("span")).hasSize(1);
    assertThat(secondHeadRow.find("th", 1).find("span").getAttribute("class")).contains("filter_column filter_text");
    assertThat(secondHeadRow.find("th", 2).getValue()).isEqualTo(firstHeadRow.find("th", 2).getValue());
    assertThat(secondHeadRow.find("th", 3).getValue()).isEqualTo(firstHeadRow.find("th", 3).getValue());
    assertThat(secondHeadRow.find("th", 4).getValue()).isEqualTo(firstHeadRow.find("th", 4).getValue());
  }
View Full Code Here

    FluentWebElement secondHeadRow = getTable().find("thead").find("tr", 1);
   
    // All other footer cells must have the same content as the header ones
    assertThat(secondHeadRow.find("th", 0).getValue()).isEqualTo(firstHeadRow.find("th", 0).getValue());
    assertThat(secondHeadRow.find("th", 1).find("span")).hasSize(1);
    assertThat(secondHeadRow.find("th", 1).find("span").getAttribute("class")).contains("filter_column filter_text");
    assertThat(secondHeadRow.find("th", 2).getValue()).isEqualTo(firstHeadRow.find("th", 2).getValue());
    assertThat(secondHeadRow.find("th", 3).getValue()).isEqualTo(firstHeadRow.find("th", 3).getValue());
    assertThat(secondHeadRow.find("th", 4).getValue()).isEqualTo(firstHeadRow.find("th", 4).getValue());
  }
 
View Full Code Here

   
    // All other footer cells must have the same content as the header ones
    assertThat(secondHeadRow.find("th", 0).getValue()).isEqualTo(firstHeadRow.find("th", 0).getValue());
    assertThat(secondHeadRow.find("th", 1).find("span")).hasSize(1);
    assertThat(secondHeadRow.find("th", 1).find("span").getAttribute("class")).contains("filter_column filter_text");
    assertThat(secondHeadRow.find("th", 2).getValue()).isEqualTo(firstHeadRow.find("th", 2).getValue());
    assertThat(secondHeadRow.find("th", 3).getValue()).isEqualTo(firstHeadRow.find("th", 3).getValue());
    assertThat(secondHeadRow.find("th", 4).getValue()).isEqualTo(firstHeadRow.find("th", 4).getValue());
  }
 
  @Test
View Full Code Here

    // All other footer cells must have the same content as the header ones
    assertThat(secondHeadRow.find("th", 0).getValue()).isEqualTo(firstHeadRow.find("th", 0).getValue());
    assertThat(secondHeadRow.find("th", 1).find("span")).hasSize(1);
    assertThat(secondHeadRow.find("th", 1).find("span").getAttribute("class")).contains("filter_column filter_text");
    assertThat(secondHeadRow.find("th", 2).getValue()).isEqualTo(firstHeadRow.find("th", 2).getValue());
    assertThat(secondHeadRow.find("th", 3).getValue()).isEqualTo(firstHeadRow.find("th", 3).getValue());
    assertThat(secondHeadRow.find("th", 4).getValue()).isEqualTo(firstHeadRow.find("th", 4).getValue());
  }
 
  @Test
  public void should_generate_input_field_before_the_head() {
View Full Code Here

    assertThat(secondHeadRow.find("th", 0).getValue()).isEqualTo(firstHeadRow.find("th", 0).getValue());
    assertThat(secondHeadRow.find("th", 1).find("span")).hasSize(1);
    assertThat(secondHeadRow.find("th", 1).find("span").getAttribute("class")).contains("filter_column filter_text");
    assertThat(secondHeadRow.find("th", 2).getValue()).isEqualTo(firstHeadRow.find("th", 2).getValue());
    assertThat(secondHeadRow.find("th", 3).getValue()).isEqualTo(firstHeadRow.find("th", 3).getValue());
    assertThat(secondHeadRow.find("th", 4).getValue()).isEqualTo(firstHeadRow.find("th", 4).getValue());
  }
 
  @Test
  public void should_generate_input_field_before_the_head() {
    goToPage("basics/filtering/filtering_with_input_with_headbefore");
View Full Code Here

   
    FluentWebElement firstHeadRow = getTable().find("thead").find("tr", 0);
    FluentWebElement secondHeadRow = getTable().find("thead").find("tr", 1);
   
    // All other footer cells must have the same content as the header ones
    assertThat(firstHeadRow.find("th", 0).getValue()).isEqualTo(secondHeadRow.find("th", 0).getValue());
    assertThat(firstHeadRow.find("th", 1).find("span")).hasSize(1);
    assertThat(firstHeadRow.find("th", 1).find("span").getAttribute("class")).contains("filter_column filter_text");
    assertThat(firstHeadRow.find("th", 2).getValue()).isEqualTo(secondHeadRow.find("th", 2).getValue());
    assertThat(firstHeadRow.find("th", 3).getValue()).isEqualTo(secondHeadRow.find("th", 3).getValue());
    assertThat(firstHeadRow.find("th", 4).getValue()).isEqualTo(secondHeadRow.find("th", 4).getValue());
View Full Code Here

   
    // All other footer cells must have the same content as the header ones
    assertThat(firstHeadRow.find("th", 0).getValue()).isEqualTo(secondHeadRow.find("th", 0).getValue());
    assertThat(firstHeadRow.find("th", 1).find("span")).hasSize(1);
    assertThat(firstHeadRow.find("th", 1).find("span").getAttribute("class")).contains("filter_column filter_text");
    assertThat(firstHeadRow.find("th", 2).getValue()).isEqualTo(secondHeadRow.find("th", 2).getValue());
    assertThat(firstHeadRow.find("th", 3).getValue()).isEqualTo(secondHeadRow.find("th", 3).getValue());
    assertThat(firstHeadRow.find("th", 4).getValue()).isEqualTo(secondHeadRow.find("th", 4).getValue());
  }
}
View Full Code Here

    // All other footer cells must have the same content as the header ones
    assertThat(firstHeadRow.find("th", 0).getValue()).isEqualTo(secondHeadRow.find("th", 0).getValue());
    assertThat(firstHeadRow.find("th", 1).find("span")).hasSize(1);
    assertThat(firstHeadRow.find("th", 1).find("span").getAttribute("class")).contains("filter_column filter_text");
    assertThat(firstHeadRow.find("th", 2).getValue()).isEqualTo(secondHeadRow.find("th", 2).getValue());
    assertThat(firstHeadRow.find("th", 3).getValue()).isEqualTo(secondHeadRow.find("th", 3).getValue());
    assertThat(firstHeadRow.find("th", 4).getValue()).isEqualTo(secondHeadRow.find("th", 4).getValue());
  }
}
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.