1. @PageMethod
  2. public void moveMouseTo(int row, int column, long xOffset, long yOffset) {
  3. WebElement cell = getCell(row, column);
  4. interaction.getMouse().mouseMove(((Locatable) cell).getCoordinates(), xOffset, yOffset);
  5. Log.message("Mouse has been moved to cell");
  6. }
  7. @PageMethod
  8. public void enterCellValue(int row, int column, String value) {
  9. WebElement cell = getCell(row, column);
  10. Actions f2 = new Actions(driverEncapsulation.getWrappedDriver());
  11. f2.sendKeys(cell, Keys.F2);
  12. f2.perform();
  13. WebElement editBox = awaiting.awaitCondition(1, AdditionalExpectedConditions.getVisibleElement(cellInputBoxes));
  14. editBox.sendKeys(value + Keys.ENTER);
  15. Actions enter = new Actions(driverEncapsulation.getWrappedDriver());
  16. enter.sendKeys(cell, Keys.TAB);
  17. enter.perform();
  18. }