- @PageMethod
- public void moveMouseTo(int row, int column, long xOffset, long yOffset) {
- WebElement cell = getCell(row, column);
- interaction.getMouse().mouseMove(((Locatable) cell).getCoordinates(), xOffset, yOffset);
- Log.message("Mouse has been moved to cell");
- }
- @PageMethod
- public void enterCellValue(int row, int column, String value) {
- WebElement cell = getCell(row, column);
- Actions f2 = new Actions(driverEncapsulation.getWrappedDriver());
- f2.sendKeys(cell, Keys.F2);
- f2.perform();
- WebElement editBox = awaiting.awaitCondition(1, AdditionalExpectedConditions.getVisibleElement(cellInputBoxes));
- editBox.sendKeys(value + Keys.ENTER);
- Actions enter = new Actions(driverEncapsulation.getWrappedDriver());
- enter.sendKeys(cell, Keys.TAB);
- enter.perform();
- }