Package org.fluentlenium.core.domain

Examples of org.fluentlenium.core.domain.FluentWebElement


  }

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


    // A second row in the thead must be added
    assertThat(getTable().find("thead").find("tr")).hasSize(2);
    assertThat(getTable().find("thead").find("tr", 1).find("th")).hasSize(5);
    assertThat(getTable().find("tfoot")).hasSize(0);
   
    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

    // A second row in the thead must be added
    assertThat(getTable().find("thead").find("tr")).hasSize(2);
    assertThat(getTable().find("thead").find("tr", 1).find("th")).hasSize(5);
    assertThat(getTable().find("tfoot")).hasSize(0);
   
    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

    // A second row in the thead must be added
    assertThat(getTable().find("thead").find("tr")).hasSize(2);
    assertThat(getTable().find("thead").find("tr", 1).find("th")).hasSize(5);
    assertThat(getTable().find("tfoot")).hasSize(0);
   
    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

    // A second row in the thead must be added
    assertThat(getTable().find("thead").find("tr")).hasSize(2);
    assertThat(getTable().find("thead").find("tr", 1).find("th")).hasSize(5);
    assertThat(getTable().find("tfoot")).hasSize(0);
   
    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

 
  @Ignore
  public void should_generate_bottom_left_link() {
    goToPage("themes/bootstrap2_bottom_left_link");
   
    FluentWebElement divExport = find("#" + TABLE_ID + "_wrapper").findFirst("div.span6").findFirst("div");
   
   
    assertThat(divExport.getAttribute("class")).isEqualTo("dandelion_dataTables_export");
    assertThat(StringUtils.trimAllWhitespace(divExport.getAttribute("style"))).isEqualTo("float:left;margin-right:10px;");
  }
View Full Code Here

 
  @Ignore
  public void should_generate_top_right_link() {
    goToPage("themes/bootstrap2_top_right_link");
   
    FluentWebElement divExport = find("#" + TABLE_ID + "_wrapper").find("div.span6", 1).findFirst("div");
   
    assertThat(divExport.getAttribute("class")).isEqualTo("dandelion_dataTables_export");
    assertThat(StringUtils.trimAllWhitespace(divExport.getAttribute("style"))).isEqualTo("float:right;");
  }
View Full Code Here

 
  @Ignore
  public void should_generate_top_middle_link() {
    goToPage("themes/bootstrap2_top_middle_link");
   
    FluentWebElement divExport = find("#" + TABLE_ID + "_wrapper").find("div.span6", 1).findFirst("div");
   
    assertThat(divExport.getAttribute("class")).isEqualTo("dandelion_dataTables_export");
    assertThat(StringUtils.trimAllWhitespace(divExport.getAttribute("style"))).isEqualTo("float:left;margin-left:10px;");
  }
View Full Code Here

 
  @Ignore
  public void should_generate_top_left_link() {
    goToPage("themes/bootstrap2_top_left_link");
   
    FluentWebElement divExport = find("#" + TABLE_ID + "_wrapper").findFirst("div.span6").findFirst("div");
   
    assertThat(divExport.getAttribute("class")).isEqualTo("dandelion_dataTables_export");
    assertThat(StringUtils.trimAllWhitespace(divExport.getAttribute("style"))).isEqualTo("float:left;margin-right:10px;");
  }
View Full Code Here

    private void signupUser() {
        goToLogin();
        try {
            final String migrationLightboxSelector = "#migration_lightbox";
            final FluentWebElement migrationLightbox = browser.findFirst(migrationLightboxSelector);
            migrationLightbox.find(".mfp-close").click();
            browser.await().atMost(5L, TimeUnit.SECONDS).until(migrationLightboxSelector).areNotDisplayed();
        } catch(final NoSuchElementException nsee) {
            // migration lightbox was not shown, so we do not need to close it
        }
View Full Code Here

TOP

Related Classes of org.fluentlenium.core.domain.FluentWebElement

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.