Example usage for org.openqa.selenium.interactions InvalidCoordinatesException InvalidCoordinatesException

List of usage examples for org.openqa.selenium.interactions InvalidCoordinatesException InvalidCoordinatesException

Introduction

In this page you can find the example usage for org.openqa.selenium.interactions InvalidCoordinatesException InvalidCoordinatesException.

Prototype

public InvalidCoordinatesException(String message) 

Source Link

Usage

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");
}