Package org.zkoss.test

Examples of org.zkoss.test.JQuery


  }
 
  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


  }
 
  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)
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)
View Full Code Here

      .mouseUp(to, MouseButton.LEFT)
      .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)
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)
View Full Code Here

      .contextClick(target)
      .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)
View Full Code Here

 
  public void selectColumn(int lCol, int rCol) {
    //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)
View Full Code Here

    dragColumnToResize(col, 0);
  }
 
  public void dragColumnToResize(int col, int newSize) {
    Header columnHeader = topPanel.getColumnHeader(col);
    JQuery from = columnHeader.getBoundary();
   
    int xOffset = newSize - columnHeader.getWidth();
    new JavascriptActions(webDriver)
    .mouseOver(from, MouseButton.LEFT)
    .mouseDown(from, MouseButton.LEFT)
View Full Code Here

    dragRowToResize(row, 0);
  }
 
  public void dragRowToResize(int row, int newSize) {
    Header rowHeader = spreadsheet.getLeftPanel().getRowHeader(row);
    JQuery from = rowHeader.getBoundary();
   
    int headerBorder = rowHeader.jq$n().zk().sumStyles("tb", Style.BORDERS);
    int yOffset = (newSize + headerBorder) - rowHeader.getHeight();
    new JavascriptActions(webDriver)
    .mouseOver(from, MouseButton.LEFT)
View Full Code Here

 
  public void dragEdit(int srcTopRow, int srcLeftCol, int srcBtmRow, int srcRightCol,
      int targetRow, int targetCol) {
    spreadsheet.setSelection(srcTopRow, srcLeftCol, srcBtmRow, srcRightCol);
   
    JQuery drag = jqFactory.create("'.zsselect'");
    JQuery dropAt = spreadsheet.getCell(targetRow, targetCol).jq$n();
    dragAction(drag, dropAt);
  }
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.