Пример #1
0
        public void DraggableInParentContainer()
        {
            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.SourseParentContained.Location.X;
            var firstlocationY  = draggablePage.SourseParentContained.Location.Y;
            var containerX      = draggablePage.ParentContainer.Location.X;
            var containerY      = draggablePage.ParentContainer.Location.Y;
            var containerWidth  = draggablePage.Container.Size.Width;
            var containerHeight = draggablePage.Container.Size.Height;

            draggablePage.DragAndDropInParentContainer(50);
            draggablePage.AssertNewLocationInParentContainer(firstlocationX, firstlocationY);
        }