public void DraggableHorizontally() { 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.SourceHorizont.Location.X; var firstlocationY = draggablePage.SourceHorizont.Location.Y; draggablePage.DragAndDropHorizontal(20); draggablePage.AssertNewLocationHorizontally(firstlocationX, firstlocationY); }