public void Verify_Table_Sort() { // Start the test by setting AUT's name, window or the page name that's being tested, viewport width and height _eyes.Open(_driver, "Hackathan App", "Table Sort", new RectangleSize(1366, 728)); // Navigate the browser to the "ACME" demo app. To see visual bugs after the first run, use the commented line below instead. //_driver.Url = CommonMethods.Config["url"]; //Url navigation for V2 app. _driver.Url = CommonMethods.Config["urlV2"]; //Login CommonMethods.Login(CommonMethods.Config["username"], CommonMethods.Config["password"]); // Visual checkpoint #1 - Check the app page. _eyes.CheckWindow("Window With Transaction table before sorting"); //Clicking Amount Label BrowserServices.FindElement("CssSelector", DashboardPageObject.AmountLabelCssSelector).Click(); // Visual checkpoint #2 - Check the app page. _eyes.CheckWindow("Transaction table after sorting"); // End the test. _eyes.CloseAsync(); }
public static void ClickLoginButton() { BrowserServices.FindElement("CssSelector", LoginPageObjects.LoginButtonCssSelector).Click(); }
public static void ClickAmountLabel() { BrowserServices.FindElement("CssSelector", DashboardPageObject.AmountLabelCssSelector).Click(); }
public static void ClickShowDataForNextYear() { BrowserServices.FindElement("XPath", DashboardPageObject.ShowDataForNextYearXPath).Click(); }
public static void ClickCompareExpense() { BrowserServices.FindElement("CssSelector", DashboardPageObject.CompareExpenseCssSelector).Click(); }