Beispiel #1
0
        public void Draggable_AxisRestricted_CheckPositionOnlyX()
        {
            //Act
            _draggablePage.GoToDraggableAxisRestricted();

            var dragPositionXBefore = _draggablePage.DragBoxOnlyX.Location.X;
            var dragPositionYBefore = _draggablePage.DragBoxOnlyX.Location.Y;

            Builder
            .MoveToElement(_draggablePage.DragBoxOnlyX)
            .ClickAndHold()
            .MoveByOffset(100, 50)
            .Perform();

            var dragPositionXAfter = _draggablePage.DragBoxOnlyX.Location.X;
            var dragPositionYAfter = _draggablePage.DragBoxOnlyX.Location.Y;

            //Assert
            _draggablePage.AssertNewPositionAfterMove(dragPositionXBefore, dragPositionXAfter);
            _draggablePage.AssertSamePositionAfterMove(dragPositionYBefore, dragPositionYAfter);
        }