Example usage for org.openqa.selenium Dimension equals

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

Introduction

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

Prototype

@Override
    public boolean equals(Object o) 

Source Link

Usage

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