public void WhenICollapseTheTable()
        {
            var rows = d.Find(TablePage.StocksTable).FindElements(TablePage.StocksTableRows);

            beforeCount = rows.Count();
            d.Click(TablePage.StocksHeader);
        }
Ejemplo n.º 2
0
        public void ThenICanOpenAndCloseTheModals()
        {
            var modalPage = new TestModalPage();

            Assert.IsTrue(d.Exists(modalPage.B1));
            Assert.IsTrue(d.Exists(modalPage.B2));
            Assert.IsTrue(d.Exists(modalPage.B3));
            for (int i = 0; i < 3; i++)
            {
                d.Click(modalPage.B1);
                d.Click(modalPage.Close);
                d.Click(modalPage.B2);
                d.Click(modalPage.Close);
                d.Click(modalPage.B3);
                d.Click(modalPage.Close);
            }
        }
Ejemplo n.º 3
0
 public void WhenISelectTheMiniCalendarMonthDropDown()
 {
     d.Click(CalPage.MiniCalendarMonthDropDown);
 }
Ejemplo n.º 4
0
 public void MiniCalendarSelectDate(IPortalDriver d, DateTime date)
 {
     d.Click(new ByEx(By.LinkText(date.ToString("MMMM").Substring(0, 3))));
     d.Click(new ByEx(By.LinkText(date.ToString("yyyy"))));
     d.Click(MiniCalendarOkButton);
 }
Ejemplo n.º 5
0
 public void MiniCalendarSelectDay(IPortalDriver d, DateTime date)
 {
     d.Click(MiniCalendarMonthDropDown);
     MiniCalendarSelectDate(d, date);
     d.Click(MiniCalendarDay(date));
 }
 public void MiniCalendarSelectDate(IPortalDriver d, DateTime date)
 {
     d.Click(new ByEx(By.LinkText(date.ToString("MMMM").Substring(0,3))));
     d.Click(new ByEx(By.LinkText(date.ToString("yyyy"))));
     d.Click(MiniCalendarOkButton);
 }
 public void MiniCalendarSelectDay(IPortalDriver d, DateTime date)
 {
     d.Click(MiniCalendarMonthDropDown);
     MiniCalendarSelectDate(d, date);
     d.Click(MiniCalendarDay(date));
 }
 public void GivenIGenerateMillionRecords(int p0)
 {
     d.Click(GridPage.MILRecordsButton);
 }