Package org.zkoss.ztl

Examples of org.zkoss.ztl.JQuery.text()


        click(jq("$okBtn"));
        waitResponse();
       
        // Verify
        cell_L_13 = loadTargetCell();
        verifyEquals("Incorrect result! J13=" + cell_J_13.text() + ", L13=" + cell_L_13.text(),
                cell_J_13.text(), cell_L_13.text());
    }
   
    private JQuery loadTargetCell() {
        return getSpecifiedCell(11, 12);
View Full Code Here


        waitResponse();
       
        // Verify
        cell_L_13 = loadTargetCell();
        verifyEquals("Incorrect result! J13=" + cell_J_13.text() + ", L13=" + cell_L_13.text(),
                cell_J_13.text(), cell_L_13.text());
    }
   
    private JQuery loadTargetCell() {
        return getSpecifiedCell(11, 12);
    }
View Full Code Here

        Iterator<JQuery> i = cell.iterator();
        while (i.hasNext()) {
          JQuery j = i.next();
          if (!j.isVisible())
            continue;
          String str = j.text();
          if (str != null && str.length() > 0) {
            return str;
          }
        }
        return "";
View Full Code Here

        Iterator<JQuery> i = cell.iterator();
        while (i.hasNext()) {
          JQuery j = i.next();
          if (!j.isVisible())
            continue;
          String str = j.text();
          if (str != null && str.length() > 0) {
            return str;
          }
        }
        return "";
View Full Code Here

      int size = menus.length();
      if (size == 0)
        throw new RuntimeException("menu item not found: " + menuLabel);
      for (int i = 0; i < size; i++) {
        JQuery menu = jq(".z-menu-popup:visible .z-menu-item .z-menu-item-cnt:eq(" + i + ")");
        if (menu.text().indexOf(menuLabel) >= 0) {
          click(menu.parent());
          return;
        }
      }
      throw new RuntimeException("menu item not found: " + menuLabel);
View Full Code Here

    waitResponse();
    keyUp(jq("$formulaEditor"),ENTER);
    waitResponse();

    JQuery k15 = getSpecifiedCell(10, 14);
    String result = k15.text();
    verifyEquals(result, "125000");
  }
}

View Full Code Here

   
    clickCell(A0);
    typeKeys(A0, "2");
    keyPressEnter(jq(".zsedit"));
    waitResponse();
    verifyEquals("1", A0.text());
  }

}
View Full Code Here

        // Verify -- formula
        String formulaBarValue = jq("$formulaEditor").val();
        verifyEquals("Incorrect value: " + formulaBarValue, "=+K13", formulaBarValue);
       
        // Verify -- Number format
        String targetCellValue = cell_L_13.text();
        verifyEquals("Incorrect value: " + targetCellValue, "$0", targetCellValue);
    }
   
    private JQuery loadTargetCell() {
        return getSpecifiedCell(11, 12);
View Full Code Here

        click(jq("$okBtn"));
        waitResponse();
       
        // Verify
        cell_L_13 = loadTargetCell();
        verifyEquals("Incorrect result! L13=" + cell_L_13.text(), orgVal, cell_L_13.text());
    }
   
    private JQuery loadTargetCell() {
        return getSpecifiedCell(11, 12);
    }
View Full Code Here

        click(jq("$okBtn"));
        waitResponse();
       
        // Verify
        cell_L_13 = loadTargetCell();
        verifyEquals("Incorrect result! L13=" + cell_L_13.text(), orgVal, cell_L_13.text());
    }
   
    private JQuery loadTargetCell() {
        return getSpecifiedCell(11, 12);
    }
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.