Beispiel #1
0
        public void Draggable_Simple_CheckPosition()
        {
            //Act
            _draggablePage.GoToDraggableSimple();

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

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

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

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