List of usage examples for org.openqa.selenium Point equals
@Override
public boolean equals(Object o)
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(); } }