Package org.zkoss.test

Examples of org.zkoss.test.JavascriptActions


    focus(tRow, lCol);
   
    JQuery from = cellFactory.create(tRow, lCol).jq$n();
    JQuery to = cellFactory.create(bRow, rCol).jq$n();
   
    new JavascriptActions(webDriver)
    .mouseDown(from, MouseButton.LEFT)
    .mouseMove(from, MouseButton.LEFT)
    .mouseMove(to, MouseButton.LEFT)
    .mouseUp(to, MouseButton.LEFT)
    .perform();
View Full Code Here


 
  public void openCellContextMenu(int tRow, int lCol, int bRow, int rCol) {
    spreadsheet.setSelection(tRow, lCol, bRow, rCol);
   
    JQuery target = spreadsheet.getCell(tRow, lCol).jq$n();
    new JavascriptActions(webDriver)
      .contextClick(target)
      .perform();
  }
View Full Code Here

      .perform();
  }
 
  public void rightClick(JQuery target) {
    try { //event may hide the element, cause next event throw exception
      new JavascriptActions(webDriver)
      .mouseOver(target, MouseButton.RIGHT)
      .mouseDown(target, MouseButton.RIGHT)
      .mouseUp(target, MouseButton.RIGHT)
      .contextClick(target)
      .perform();
View Full Code Here

      public boolean apply(Void input) {
        return target.isVisible();
      }
    });
    try { //event may hide the element, cause next event throw exception
      new JavascriptActions(webDriver)
      .mouseOver(target, MouseButton.LEFT)
      .mouseDown(target, MouseButton.LEFT)
      .mouseUp(target, MouseButton.LEFT)
      .click(target)
      .perform();
View Full Code Here

 
  public void openRowContextMenu(int tRow, int bRow) {
    selectRow(tRow, bRow);
   
    JQuery target = spreadsheet.getRowHeader(tRow).jq$n();
    new JavascriptActions(webDriver)
      .mouseOver(target, MouseButton.RIGHT)
      .mouseDown(target, MouseButton.RIGHT)
      .mouseUp(target, MouseButton.RIGHT)
      .contextClick(target)
      .perform();
View Full Code Here

  public void selectRow(int tRow, int bRow) {
    selectRow(tRow);
   
    JQuery from = spreadsheet.getRowHeader(tRow).jq$n();
    JQuery to = spreadsheet.getRowHeader(bRow).jq$n();   
    new JavascriptActions(webDriver)
      .mouseOver(from, MouseButton.LEFT)
      .mouseDown(from, MouseButton.LEFT)
      .mouseMove(from, MouseButton.LEFT)
      .mouseMove(to, MouseButton.LEFT)
      .mouseUp(to, MouseButton.LEFT)
View Full Code Here

      .perform();
  }

  public void selectRow(int tRow) {
    JQuery c = spreadsheet.getRowHeader(tRow).jq$n();
    new JavascriptActions(webDriver)
      .mouseOver(c, MouseButton.LEFT)
      .mouseDown(c, MouseButton.LEFT)
      .mouseUp(c, MouseButton.LEFT)
      .click(c)
      .perform();
View Full Code Here

 
  public void openColumnContextMenu(int lCol, int rCol) {
    selectColumn(lCol, rCol);
   
    JQuery target = spreadsheet.getColumnHeader(lCol).jq$n();
    new JavascriptActions(webDriver)
      .mouseOver(target, MouseButton.RIGHT)
      .mouseDown(target, MouseButton.RIGHT)
      .mouseUp(target, MouseButton.RIGHT)
      .contextClick(target)
      .perform();
View Full Code Here

      .perform();
  }
 
  public void selectColumn(int col) {
    JQuery c = spreadsheet.getColumnHeader(col).jq$n();
    new JavascriptActions(webDriver)
      .mouseOver(c, MouseButton.LEFT)
      .mouseDown(c, MouseButton.LEFT)
      .mouseUp(c, MouseButton.LEFT)
      .click(c)
      .perform();
View Full Code Here

    //click
    selectColumn(lCol);
   
    JQuery from = spreadsheet.getColumnHeader(lCol).jq$n();
    JQuery to = spreadsheet.getColumnHeader(rCol).jq$n();   
    new JavascriptActions(webDriver)
      .mouseOver(from, MouseButton.LEFT)
      .mouseDown(from, MouseButton.LEFT)
      .mouseMove(from, MouseButton.LEFT)
      .mouseMove(to, MouseButton.LEFT)
      .mouseUp(to, MouseButton.LEFT)
View Full Code Here

TOP

Related Classes of org.zkoss.test.JavascriptActions

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.