List of usage examples for org.openqa.selenium Dimension equals
@Override
public boolean equals(Object o)
From source file:org.auraframework.integration.test.components.ui.menu.MenuUITest.java
License:Apache License
/** * Wait for the current window to have expected dimensions. *//* w ww.j a va 2 s .c om*/ private void waitForWindowResize(final Dimension newDimension) { getAuraUITestingUtil().waitUntilWithCallback(check -> { Dimension current = getDriver().manage().window().getSize(); return current.equals(newDimension); }, check -> { Dimension current = getDriver().manage().window().getSize(); return "Current window dimension is {width: " + current.width + ", height: " + current.height + "}"; }, getAuraUITestingUtil().getTimeout(), "Window size is not resized correctly"); }