public static void DMI(IWebDriver driver) { Enter.Into(driver, DMILoginPage.UsernameField, "qa1"); Enter.Into(driver, DMILoginPage.PasswordField, "Password123."); Click.Button(driver, DMILoginPage.LoginButton); WaitFor.Element(driver, DMIDashboardPage.Dashboard); }
public static void DMIWithInvalidPassword(IWebDriver driver) { Enter.Into(driver, DMILoginPage.UsernameField, "qa9"); Enter.Into(driver, DMILoginPage.PasswordField, "Password123."); Click.Button(driver, DMILoginPage.LoginButton); WaitFor.Element(driver, DMILoginPage.UsernameField); }
public static void ToDate(IWebDriver driver, int day, string month, string year) { var currentMonth = CultureInfo.CurrentCulture.DateTimeFormat.GetMonthName(DateTime.Today.Month); var currentYear = DateTime.Today.Year.ToString(); Click.Button(driver, OrdersPage.ToDateOpenCalendarSelector()); Click.Element(driver, OrdersPage.ToDateMonthYearSelector($"{currentMonth} {currentYear}")); Click.Element(driver, OrdersPage.ToDateMonthYearSelector($"{currentYear}")); SelectYearToDate(driver, year); SelectMonthToDate(driver, month); SelectDayToDate(driver, day); }
public static void DMI(IWebDriver driver) { Click.Button(driver, DMIDashboardPage.AccountDropDownToggle); Click.LastButtonByCSS(driver); WaitFor.Element(driver, DMILoginPage.UsernameField); }