Esempio n. 1
0
  @Test
  public void testByName() throws Exception {
    browser.get("http://www.google.com");

    DefaultWebElements searchFld = browser.$("q");

    searchFld.fill("Minium Can!");
  }
Esempio n. 2
0
  @Test
  public void googleSpreadsheet() {
    browser.get(
        "https://docs.google.com/spreadsheet/ccc?key=0Al0ulrJIDCUVdHJjWnJsbG5hY3hBWFp0Vy1OQV9qQUE#gid=0");

    DefaultWebElements colC =
        browser.$("#0-grid-table-quadrantcolumn-head-section th").withText("C");
    DefaultWebElements row5 = browser.$(".row-header-wrapper").withText("5");
    DefaultWebElements cellC5 =
        browser.$("#0-grid-table-quadrantscrollable td").below(colC).rightOf(row5);

    cellC5.doubleClick();

    DefaultWebElements cellInput = browser.$(".cell-input").overlaps(cellC5);

    cellInput.fill("Minium can!");
  }
Esempio n. 3
0
 @AfterClass
 public static void tearDown() {
   browser.quit();
 }