예제 #1
0
        public void DraggablePageMovementOnlyHorrizontally()
        {
            var     draggablePage = new DraggablePage(this.driver);
            Actions builder       = new Actions(this.driver);

            draggablePage.Navigate();
            draggablePage.ConstrainMovementButton.Click();
            var beforeYlocation = draggablePage.HorryzontallyMovementBox.Location.Y;

            builder.DragAndDrop(draggablePage.HorryzontallyMovementBox, draggablePage.AnotherDomBox);
            builder.Perform();
            draggablePage.AssertMovementHorrizontally(beforeYlocation);
        }