Esempio n. 1
0
 public void _05_TouchCheckboxes()
 {
     indexPage = new IndexPage(Driver);
     bool result = indexPage.TouchCheckbox();
     Assert.AreEqual(CountOfUncompletedTasks(), 3);
     Assert.AreEqual(result, true);
 }
Esempio n. 2
0
        public void _06_TouchedInActive()
        {
            indexPage = new IndexPage(Driver);
            indexPage.MoveToActive();
            var activeList = indexPage.UnCompletedTasksList.ToList();
            var completedList = indexPage.CompletedTasksList.ToList();
            bool result = true;
            foreach (var al in activeList)
            {
                foreach (var cl in completedList)
                {
                    if (al.Text == cl.Text)
                        result = false;
                }
            }

            Assert.AreEqual(result, true);
        }
Esempio n. 3
0
 public static IndexPage GetIndexPage(IWebDriver driver)
 {
     IndexPage indexPage = new IndexPage(driver);
     return indexPage;
 }
Esempio n. 4
0
 public void _07_TouchedInComplete()
 {
     indexPage = new IndexPage(Driver);
     indexPage.MoveToCompleted();
     bool result = true;
     var uncompletedList = indexPage.AllUntouched.ToList();
     foreach (var ul in uncompletedList)
     {
         if (!ul.Selected)
             result = false;
     }
     Assert.AreEqual(result, true);
 }
Esempio n. 5
0
 private void EnterTask(string task)
 {
     indexPage = new IndexPage(Driver);
     indexPage.InputTask(task);
 }
Esempio n. 6
0
 public void _00_IsInput()
 {
     indexPage = new IndexPage(Driver);
     Assert.AreEqual(indexPage.IsInput(), true);
 }
Esempio n. 7
0
 private int CountOfUncompletedTasks()
 {
     indexPage = new IndexPage(Driver);
     return indexPage.CountOfUncompletedTasks();
 }
Esempio n. 8
0
 public void _12_RemoveTask()
 {
     indexPage = new IndexPage(Driver);
     indexPage.MoveToAll();
     indexPage.Destroy();
     Assert.AreEqual(indexPage.CountCompletedTasks(), 4);
 }
Esempio n. 9
0
 public void _11_ToggleAll()
 {
     List<IWebElement> list = indexPage.CompletedTasksList.ToList();
     indexPage = new IndexPage(Driver);
     indexPage.ToggleAll.Click();
     indexPage.MoveToActive();
     Assert.AreEqual(CountOfUncompletedTasks(), 0);
 }
Esempio n. 10
0
 public void _10_DeleteComplete()
 {
     indexPage = new IndexPage(Driver);
     indexPage.MoveToClear();
     Assert.AreEqual(indexPage.DisplayToClear(), false);
     Assert.AreEqual(CountOfUncompletedTasks(), 5);
 }
Esempio n. 11
0
 public void _08_RemoveCheckboxes()
 {
     indexPage = new IndexPage(Driver);
     indexPage.MoveToAll();
     var list = indexPage.TouchedCheckboxes();
     list[0].Click();
     list[2].Click();
     Assert.AreEqual(CountOfUncompletedTasks(), 5);
 }