Package org.zkoss.test

Examples of org.zkoss.test.JQuery


    click("$docBtn");
   
    click("$refSheet .z-treecell:eq(0)");
    click("$okBtn");
   
    JQuery link = getCell(11, 10).jq$n("real").children().first();
    Assert.assertTrue(link.attr("href").lastIndexOf("Input!A1") >= 0);
  }
View Full Code Here


  @Test
  public void row_font_color() {
    mouseDirector.openRowContextMenu(12);
   
    click(".zsstylepanel .zstbtn-fontColor .zstbtn-cave");
    JQuery target = jqFactory.create("'.z-colorpalette-colorbox'").eq(68);
    String color = target.css("background-color");
    click(target);
   
    verifyFontColor(new Color(color), 12, 5, 12, 9);
  }
View Full Code Here

  @Test
  public void row_fill_color() {
    mouseDirector.openRowContextMenu(12);
   
    click(".zsstylepanel .zstbtn-fillColor .zstbtn-cave");
    JQuery target = jqFactory.create("'.z-colorpalette-colorbox'").eq(68);
    String color = target.css("background-color");
    click(target);
   
    verifyFillColor(new Color(color), 12, 5, 12, 9);
  }
View Full Code Here

  @Test
  public void row_height() {
    mouseDirector.openRowContextMenu(12);
   
    click(".z-menupopup:visible .zsmenuitem-rowHeight");
    JQuery $input = jq("$headerSize");
    WebElement input = $input.getWebElement();
    input.clear();
    input.sendKeys("40");
    new JavascriptActions(webDriver)
    .keyDown($input, Keycode.ENTER.intValue())
    .keyUp($input, Keycode.ENTER.intValue())
View Full Code Here

  @Test
  public void ctrl_o_openfile() {
    spreadsheet.focus(0, 0);
   
    JQuery target = spreadsheet.jq$n();
    new JavascriptActions(webDriver)
    .ctrlKeyDown(target, Keycode.O.intValue())
    .ctrlKeyUp(target, Keycode.O.intValue())
    .perform();
   
View Full Code Here

 
  @Test
  public void enter_next_cell() {
   
    spreadsheet.focus(12, 10);
    JQuery K13 = getCell(12, 10).jq$n();
   
    new JavascriptActions(webDriver)
    .keyDown(K13, Keycode.ENTER.intValue())
    .keyUp(K13, Keycode.ENTER.intValue())
    .perform();
View Full Code Here

    int bRow = 16;
    int rCol = 9;
    spreadsheet.setSelection(tRow, lCol, bRow, rCol);
    click(".zstbtn-fontColor .zstbtn-cave");
   
    JQuery target = jqFactory.create("'.z-colorpalette-colorbox'").eq(68);
    String color = target.css("background-color");
    click(target);
   
    verifyFontColor(new Color(color), tRow, lCol, bRow, rCol);
  }
View Full Code Here

  public void rename_sheet() {
   
    rightClick(jq(".zssheettab").first());
    click(".zsmenuitem-renameSheet");
   
    JQuery $editor = jq(".zssheettab-rename-textbox");
    WebElement editor = $editor.getWebElement();
    editor.clear();
    editor.sendKeys("PP");
    new JavascriptActions(webDriver)
    .keyDown($editor, Keycode.ENTER.intValue())
    .keyUp($editor, Keycode.ENTER.intValue())
View Full Code Here

   
    keyboardDirector.setEditText(11, 10, "ABC");
    timeBlocker.waitUntil(1);
    Assert.assertEquals("ABC", getCell(11, 10).getText());
   
    JQuery target = jq(".zssheettab").first();
    target.getWebElement().click();
    rightClick(target);
    click(".z-menupopup:visible .zsmenuitem-protectSheet");
   
    spreadsheet.focus(11, 10);
    keyboardDirector.setEditText(11, 10, "DEF");
View Full Code Here

   
    String cssName = jq(".zsmenuitem-moveSheetLeft").attr("class");
    Assert.assertTrue(cssName.indexOf("z-menuitem-disd") >= 0);
   
    //move the second sheet left
    JQuery sheet = jq(".zssheettab").eq(1);
    String sheetName = sheet.text();
    click(sheet);
    rightClick(sheet);
    click(".z-menupopup:visible .zsmenuitem-moveSheetLeft");
   
    JQuery firstSheet = jq(".zssheettab").first();
    Assert.assertEquals(sheetName, firstSheet.text());
  }
View Full Code Here

TOP

Related Classes of org.zkoss.test.JQuery

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.