Example usage for org.openqa.selenium Point equals

List of usage examples for org.openqa.selenium Point equals

Introduction

In this page you can find the example usage for org.openqa.selenium Point equals.

Prototype

@Override
    public boolean equals(Object o) 

Source Link

Usage

From source file:org.nvonop.selenium.framework.actionbot.BaseBot.java

License:Open Source License

private void waitForControlToStopMoving() throws InterruptedException {
    Point elementStartLocation = baseWebElement.getLocation();
    Thread.sleep(delay);/* w  ww. ja  v  a  2  s  .  com*/
    Point elementCurrentLocation = baseWebElement.getLocation();
    while (!elementCurrentLocation.equals(elementStartLocation)) {
        elementStartLocation = elementCurrentLocation;
        Thread.sleep(delay);
        elementCurrentLocation = baseWebElement.getLocation();
    }
}