public void AnimateFunctionalityByPixels(int xTransition, int yTransition) { _resizablePage.NavigateTo(); _resizablePage.AnimateButton.Click(); int startXCoordinate = _resizablePage.ResizablePoint.Location.X + xTransition; int startYCoordinate = _resizablePage.ResizablePoint.Location.Y + yTransition; _resizablePage.DragElementByOffset(_resizablePage.ResizablePoint, xTransition, yTransition); int endXCoordinate = _resizablePage.ResizablePoint.Location.X; int endYCoordinate = _resizablePage.ResizablePoint.Location.Y; Assert.AreEqual(startXCoordinate, endXCoordinate, 3); Assert.AreEqual(startYCoordinate, endYCoordinate, 3); }