Esempio n. 1
0
 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);
 }
Esempio n. 2
0
 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);
        }
Esempio n. 4
0
 public static void DMI(IWebDriver driver)
 {
     Click.Button(driver, DMIDashboardPage.AccountDropDownToggle);
     Click.LastButtonByCSS(driver);
     WaitFor.Element(driver, DMILoginPage.UsernameField);
 }