Examples of JavascriptActions


Examples of org.zkoss.test.JavascriptActions

    click(".z-menupopup:visible .zsmenuitem-columnWidth");
    JQuery $input = jq("$headerSize");
    WebElement input = $input.getWebElement();
    input.clear();
    input.sendKeys("120");
    new JavascriptActions(webDriver)
    .keyDown($input, Keycode.ENTER.intValue())
    .keyUp($input, Keycode.ENTER.intValue())
    .perform();
   
    timeBlocker.waitUntil(1);
View Full Code Here

Examples of org.zkoss.test.JavascriptActions

    click(".zsformulabar-insertbtn");
    JQuery $inp = jq("$searchTextbox");
    WebElement inp = $inp.getWebElement();
    inp.sendKeys("bin");
   
    new JavascriptActions(webDriver)
    .keyDown($inp, Keycode.ENTER.intValue())
    .keyUp($inp, Keycode.ENTER.intValue())
    .perform();
   
    timeBlocker.waitResponse();
View Full Code Here

Examples of org.zkoss.test.JavascriptActions

   
    click(".zsformulabar-insertbtn");
    JQuery $inp = jq("$searchTextbox");
    WebElement inp = $inp.getWebElement();
    inp.sendKeys("sum");
    new JavascriptActions(webDriver)
    .keyDown($inp, Keycode.ENTER.intValue())
    .keyUp($inp, Keycode.ENTER.intValue())
    .perform();
    timeBlocker.waitResponse();
   
View Full Code Here

Examples of org.zkoss.test.JavascriptActions

   
    click(".zsformulabar-insertbtn");
    JQuery $inp = jq("$searchTextbox");
    WebElement inp = $inp.getWebElement();
    inp.sendKeys("sum");
    new JavascriptActions(webDriver)
    .keyDown($inp, Keycode.ENTER.intValue())
    .keyUp($inp, Keycode.ENTER.intValue())
    .perform();
    timeBlocker.waitUntil(1);
    timeBlocker.waitResponse();
View Full Code Here

Examples of org.zkoss.test.JavascriptActions

    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())
    .perform();
   
    timeBlocker.waitUntil(1);
View Full Code Here

Examples of org.zkoss.test.JavascriptActions

  @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();
   
    timeBlocker.waitResponse();
View Full Code Here

Examples of org.zkoss.test.JavascriptActions

  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();
   
    Assert.assertTrue(spreadsheet.isSelection(13, 10));
View Full Code Here

Examples of org.zkoss.test.JavascriptActions

   
    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())
    .perform();
    timeBlocker.waitUntil(1);
   
    Assert.assertEquals("PP", jq(".zssheettab-text").first().text());
   
    //rename twice
    rightClick(jq(".zssheettab").first());
    click(".zsmenuitem-renameSheet");
   
    editor = jq(".zssheettab-rename-textbox").getWebElement();
    editor.clear();
    editor.sendKeys("SS");
    new JavascriptActions(webDriver)
    .keyDown($editor, Keycode.ENTER.intValue())
    .keyUp($editor, Keycode.ENTER.intValue())
    .perform();
    timeBlocker.waitUntil(1);
   
View Full Code Here

Examples of org.zkoss.test.JavascriptActions

    click(".zsformulabar-editor-real");
    editor.sendKeys("=");
    timeBlocker.waitResponse();
   
    spreadsheet.focus(14, 5);
    new JavascriptActions(webDriver)
    .enter(jq(".zsformulabar-editor-real"))
    .perform();
    timeBlocker.waitUntil(1);
    timeBlocker.waitResponse();
View Full Code Here

Examples of org.zkoss.test.JavascriptActions

//    cell.click();
   
    JQuery target = cellFactory.create(row, col).jq$n();
   
    //if spreadsheet widget doesn't have focus, the first event will focus on last focus
    new JavascriptActions(webDriver)
    .mouseDown(target, MouseButton.LEFT)
    .mouseUp(target, MouseButton.LEFT)
    .perform();
   
    new JavascriptActions(webDriver)
    .mouseDown(target, MouseButton.LEFT)
    .mouseUp(target, MouseButton.LEFT)
    .perform();
    timeBlocker.waitResponse();
  }
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.