public void DragabbleToDownPosition() { DragabblePage dragabblePage = new DragabblePage(Driver); Builder .MoveToElement(dragabblePage.dragMeElement) .ClickAndHold() .MoveByOffset(0, 250) .Perform(); Assert.AreEqual(794, dragabblePage.dragMeElement.Location.Y + 250); }
public void SetUp() { InitializeMaximizedBrowser(); _homePage = new HomePage(Driver); _demoQAPage = new DemoQAPage(Driver); _dragabblePage = new DragabblePage(Driver); Driver.NavigateTo(_homePage.URL); _homePage.CategoryCard("Interactions").Click(); Driver.ScrollToElement(_demoQAPage.LeftPanelSubMenu("Dragabble")).Click(); }
public void DragabbleAroundY() { DragabblePage dragabblePage = new DragabblePage(Driver); dragabblePage.axisRestrictedTab.Click(); var onlyXBox = dragabblePage.onlyXBoxX; var yBefore = onlyXBox.Location.Y; Builder.DragAndDropToOffset(onlyXBox, 100, 100).Perform(); var yAfter = onlyXBox.Location.Y; Assert.AreEqual(yBefore, yAfter); }
public void SetUp() { Initialize(); _dragabblePage = new DragabblePage(Driver); _dragabblePage.NavigateTo(); }
public void Befor_eEachTest() { StartBrowser(); NavigateToURL(URLs.DemoQASite); _dragabblePage = new HomePage(Driver).NavigateToInteractionsPage().NavigateToInteractionsSection("Dragabble"); }
public void SetUp() { Initialize(); Driver.Navigate().GoToUrl("http://demoqa.com/dragabble"); _dragabblePage = new DragabblePage(Driver); }