public void UserCanVisitDraggable() { var browser = new TestBrowser(); browser.Initialize(); new InteractionsPage(browser).Visit("Draggable") .Should().BeTrue(); browser.Close(); }
public void UserCanVisitHome() { var browser = new TestBrowser(); browser.Initialize(); new HomePage(browser).Visit() .Should().BeTrue(); browser.Close(); }
public void UserCanVisitAutomationPracticeSwitchWindows() { var browser = new TestBrowser(); browser.Initialize(); new AutomationPracticeSwitchWindowsPage(browser).Visit() .Should().BeTrue(); browser.Close(); }
public void UserCanDragItems() { var browser = new TestBrowser(); browser.Initialize(); var interactionsPage = new InteractionsPage(browser); interactionsPage.Visit("Draggable"); browser.Close(); }
public void UserCanOpenAlertBox() { var browser = new TestBrowser(); browser.Initialize(); var automationPracticeSwitchWindowsPage = new AutomationPracticeSwitchWindowsPage(browser); automationPracticeSwitchWindowsPage.Visit(); var driver = (IWebDriver)browser.Instance.Native; automationPracticeSwitchWindowsPage.OpenAlertBox(driver) .Should().BeTrue(); browser.Close(); }
public void UserCanSortItems() { var browser = new TestBrowser(); browser.Initialize(); var interactionsPage = new InteractionsPage(browser); interactionsPage.Visit("Sortable"); var driver = (IWebDriver)browser.Instance.Native; Actions act = new Actions(driver); var from = 1; var to = 2; interactionsPage.MoveElementFromTo(from, to, act); string[] expected = { "Item 2", "Item 1", "Item 3", "Item 4", "Item 5", "Item 6", "Item 7" }; var actual = interactionsPage.CheckSort(); Assert.AreEqual(expected, actual); browser.Close(); }