コード例 #1
0
        public void DraggablePageNonMovementBox()
        {
            var     draggablePage = new DraggablePage(this.driver);
            Actions builder       = new Actions(this.driver);

            draggablePage.Navigate();
            draggablePage.ConstrainMovementButton.Click();
            var beforelocation = draggablePage.NonMovementBox.Location.X;                   // It's should be the same with Y location,

            builder.DragAndDrop(draggablePage.NonMovementBox, draggablePage.AnotherDomBox); //but there is a small movement because of the text
            builder.Perform();
            draggablePage.AssertNonMovementBox(beforelocation);
        }