public void GivenUseFilterAll() { indexPage = new IndexPage(BeforeAfterScenario.Driver); indexPage.MoveToAll(); list = new List<IWebElement>() { }; list = indexPage.TouchedCheckboxes(); }
public void WhenIUseCompletedFilter() { indexPage = new IndexPage(BeforeAfterScenario.Driver); indexPage.MoveToCompleted(); result = true; var uncompletedList = indexPage.AllUntouched.ToList(); foreach (var ul in uncompletedList) { if (!ul.Selected) result = false; } }
public void WhenIUseActiveFilter() { indexPage = new IndexPage(BeforeAfterScenario.Driver); indexPage.MoveToActive(); result = true; var activeList = indexPage.UnCompletedTasksList.ToList(); var completedList = indexPage.CompletedTasksList.ToList(); foreach (var al in activeList) { foreach (var cl in completedList) { if (al.Text == cl.Text) result = false; } } }
public static IndexPage GetIndexPage(IWebDriver driver) { IndexPage indexPage = new IndexPage(driver); return indexPage; }
private int CountOfUncompletedTasks() { indexPage = new IndexPage(BeforeAfterScenario.Driver); return indexPage.CountOfUncompletedTasks(); }
public void WhenITouchFirstSecondFourthCheckboxes() { indexPage = new IndexPage(BeforeAfterScenario.Driver); result = indexPage.TouchCheckbox(); }
private void EnterTask(string task) { indexPage = new IndexPage(BeforeAfterScenario.Driver); indexPage.InputTask(task); }
public void WhenIOpenPage() { indexPage = new IndexPage(BeforeAfterScenario.Driver); }
public void WhenIClickOnClearCompletedLink() { indexPage = new IndexPage(BeforeAfterScenario.Driver); indexPage.MoveToClear(); }