Package org.zkoss.ztl

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


    waitResponse();
    click(jq("@menuitem[label=\"Top Align\"]").first());
    waitResponse();
       
    cell_B_6 = getSpecifiedCell(1, 5);
        String textAlign = cell_B_6.parent().css("vertical-align");
       
        //TODO: verify
//        if (textAlign != null) {
//            verifyTrue("Unexcepted result: " + textAlign, textAlign.equalsIgnoreCase("top"));
//        } else {
View Full Code Here


    waitResponse();
    click(jq("@menuitem[label=\"Middle Align\"]").first());
    waitResponse();
       
    cell_B_6 = getSpecifiedCell(1, 5);
        textAlign = cell_B_6.parent().css("vertical-align");
        System.out.println("");
       
        //TODO: verify
//        if (textAlign != null) {
//            verifyTrue("Unexcepted result: " + textAlign, textAlign.equalsIgnoreCase("middle"));
View Full Code Here

    waitResponse();
    click(jq("@menuitem[label=\"Bottom Align\"]").first());
    waitResponse();
       
    cell_B_6 = getSpecifiedCell(1, 5);
        textAlign = cell_B_6.parent().css("vertical-align");
       
        //TODO: verify
//        if (textAlign != null) {
//            verifyTrue("Unexcepted result: " + textAlign, textAlign.equalsIgnoreCase("bottom"));
//        } else {
View Full Code Here

      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

        JQuery cell_O_6 = getSpecifiedCell(14, 5);
        click(jq("$gridlinesCheckbox input"));
        waitResponse();
        cell_O_6 = getSpecifiedCell(14, 5);
        verifyTrue(ColorVerifingHelper.isEqualColor("rgb(208, 215, 233)",
                cell_O_6.parent().css("border-bottom-color")));
    }

}
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.