public void Test_GroupFormIsNotAdd_NameFail(string groupName, int location, int direction, string startDate, string finishDate, string teacher, string experts) { groupsForm.setName(groupName) .setLocationDDL(location) .setDirectionDDL(direction) .setStartDate(startDate) .setFinishDate(finishDate) .setTeachers(teacher) .setExperts(experts) .SubmitButton.Click(); expectedResult = groupsForm.RememberGroup(); index = groupsForm.NameField.GetAttribute("value"); Assert.IsFalse(table.FindRowInTable(expectedResult)); }
public void Initialize() { wait = new WebDriverWait(driver, TimeSpan.FromSeconds(10)); driver.Manage().Window.Maximize(); driver.Url = @"http://*****:*****@"http://localhost:3000/admin"; wait.Until((d) => CreateEditGroupsForm.IsAdminPageOpened(d)); groupsForm = new CreateEditGroupsForm(driver); groupsForm.GoToGroups.Click(); groupsForm.addGroups(); groupsForm.IsOpened(wait); groupsForm.setName("groupNet") .setLocationDDL(0) .setDirectionDDL(3) .setStartDate("02/13/2018") .setFinishDate("05/13/2018") .setTeachers("K. Kozak") .setExperts("Expert") .SubmitButton.Click(); index = groupsForm.NameField.GetAttribute("value"); }
public void Test_GroupFormNameFieldIsEdit(string groupName, int location, bool budgetOwner, int direction, string startDate, string finishDate, string teacher, string experts) { groupsForm.NameField.Clear(); groupsForm.setName(groupName); index = groupsForm.NameField.GetAttribute("value"); groupsForm.SubmitButton.Click(); expectedResult = groupsForm.RememberGroup(); Assert.IsTrue(table.FindRowInTable(expectedResult)); }
public void Test_GroupFormNameFieldIsNotEdit(string groupName, string startDate, string finishDate, string teacher, string experts) { groupsForm.NameField.Clear(); groupsForm.setName(groupName) .SubmitButton.Click(); List <string> expectedResult = groupsForm.RememberGroup(); index = groupsForm.NameField.GetAttribute("value"); Assert.IsFalse(table.FindRowInTable(expectedResult)); }
public void Test_NameFieldDisplayedText() { groupForm.setName("someText"); Assert.AreEqual("someText", groupForm.NameField.GetAttribute("value")); }