/** Click the middle mouse button at the top left corner of the element. */ public void middleClick() { Point point = coordinates.getLocationInViewPort(); execService.mouseAction(point.x, point.y, OperaMouseKeys.MIDDLE); }
/** * Click the middle mouse button at the top left corner of the element. * * <p>Will not verify whether element is available for interaction first. * * @deprecated */ @Deprecated @SuppressWarnings("unused") public void middleClick() { // TODO(andreastt): Add this to Actions Point point = coordinates.getLocationInViewPort(); execService.mouseAction(point.x, point.y, OperaMouseKeys.MIDDLE); }
/** * Click this element many times in the top left corner of the element. * * @param times the number of times to click */ public void click(int times) { Point point = coordinates.getLocationInViewPort(); execService.mouseAction(point.x, point.y, times, OperaMouseKeys.LEFT); }