Exemplo n.º 1
0
        public void DraggablePageMovementOnlyVertically()
        {
            var     draggablePage = new DraggablePage(this.driver);
            Actions builder       = new Actions(this.driver);

            draggablePage.Navigate();
            draggablePage.ConstrainMovementButton.Click();
            var beforeXlocation = draggablePage.VerticallyMovementBox.Location.X;

            builder.DragAndDrop(draggablePage.VerticallyMovementBox, draggablePage.AnotherDomBox);
            builder.Perform();
            draggablePage.AssertMovementVertically(beforeXlocation);
        }