WebElement wnd = getDriver().findElement(By.id("topwindow"));
// There is some bug in Selenium. Can't move window using header
// need use footer instead.
WebElement wnd1Footer = wnd
.findElement(By.className("v-window-footer"));
Point startLoc = wnd.getLocation();
Coordinates footerCoordinates = ((Locatable) wnd1Footer)
.getCoordinates();
Mouse mouse = ((HasInputDevices) getDriver()).getMouse();
mouse.mouseDown(footerCoordinates);
mouse.mouseMove(footerCoordinates, 200, 200);
mouse.mouseUp(footerCoordinates);
Point endLoc = wnd.getLocation();
// don't compare to specific coordinate, because in IE9 and IE11
// the window position is random.
// So, checkt that the window was moved
org.junit.Assert.assertNotEquals(startLoc, endLoc);
}