Exemplo n.º 1
0
 /** 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);
 }
Exemplo n.º 3
0
 /**
  * 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);
 }