Package br.com.caelum.seleniumdsl.table

Examples of br.com.caelum.seleniumdsl.table.Table


    browser.open("seleniumdsl/mypage.html");
  }

  @Test
  public void testTableRowCount() {
    Table table = browser.currentPage()
        .table("table");
    Assert.assertEquals(table.getRowCount(), 3);
  }
View Full Code Here


    Assert.assertEquals(table.getRowCount(), 3);
  }

  @Test
  public void testTableColCount() {
    Table table = browser.currentPage()
        .table("table");
    Assert.assertEquals(table.getColCount(), 2);
  }
View Full Code Here

    Assert.assertEquals(table.getColCount(), 2);
  }

  @Test
  public void testTableHeaderLabel() {
    Table table = browser.currentPage()
        .table("table");
    // indexes start at 1
    Assert.assertEquals(table.header()
        .cell(1)
        .headerValue(), "First Column");
  }
View Full Code Here

        .headerValue(), "First Column");
  }

  @Test
  public void testTableContent() {
    Table table = browser.currentPage()
        .table("table");
    // second row, column named "First Column"
    // value() returns null if the cell isn't found
    Assert.assertEquals(table.cell(1, "First Column")
        .value(), "cell_1_1");
    // or
    Assert.assertTrue(table.cell(1, "First Column")
        .contains("cell_1_1"));
  }
View Full Code Here

    browser.open("mypage.jsp");
  }

  @Test
  public void testTableRowCount() {
    Table table = browser.currentPage().table("table");
    Assert.assertEquals(table.getRowCount(), 3);
  }
View Full Code Here

    Assert.assertEquals(table.getRowCount(), 3);
  }

  @Test
  public void testTableColCount() {
    Table table = browser.currentPage().table("table");
    Assert.assertEquals(table.getColCount(), 2);
  }
View Full Code Here

    Assert.assertEquals(table.getColCount(), 2);
  }

  @Test
  public void testTableHeaderLabel() {
    Table table = browser.currentPage().table("table");
    // indexes start at 1
    Assert.assertEquals(table.header().cell(1).headerValue(), "First Column");
  }
View Full Code Here

    Assert.assertEquals(table.header().cell(1).headerValue(), "First Column");
  }

  @Test
  public void testTableContent() {
    Table table = browser.currentPage().table("table");
    // second row, column named "First Column"
    // value() returns null if the cell isn't found
    Assert.assertEquals(table.cell(1, "First Column").value(), "cell_1_1");
    // or
    Assert.assertTrue(table.cell(1, "First Column").contains("cell_1_1"));
  }
View Full Code Here

TOP

Related Classes of br.com.caelum.seleniumdsl.table.Table

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.