Exemplo n.º 1
0
        public void DraggableVertically()
        {
            this.driver = new ChromeDriver();
            var draggablePage = new DraggablePage(this.driver);

            draggablePage.NavigateTo();
            var newTag = this.driver.FindElement(By.XPath(" //*[@id=\"ui-id-2\"]"));

            newTag.Click();
            var firstlocationX = draggablePage.SourceVertical.Location.X;
            var firstlocationY = draggablePage.SourceVertical.Location.Y;

            draggablePage.DragAndDropVertical(20);
            draggablePage.AssertNewLocationVertical(firstlocationX, firstlocationY);
        }