List of usage examples for org.openqa.selenium.interactions InvalidCoordinatesException InvalidCoordinatesException
public InvalidCoordinatesException(String message)
From source file:com.opera.core.systems.OperaMouse.java
License:Apache License
private Point getPoint(Coordinates where, String action) { // If coordinates exist then we want to update the last known mouse position and then use it in // the action. if (where != null) { lastMousePosition = where.getLocationInViewPort(); }/*from ww w. java 2s . c om*/ if (lastMousePosition != null) { return lastMousePosition; } throw new InvalidCoordinatesException("Invalid coordinates to " + action + " on"); }