Esempio n. 1
0
 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");
 }
Esempio n. 2
0
 public void AddUserClick()
 {
     groupsForm = new CreateEditGroupsForm(driver);
     table      = new Table(groupsForm.GetTable);
     groupsForm.GoToGroups.Click();
     groupsForm.addGroups();
     groupsForm.IsOpened(wait);
 }
Esempio n. 3
0
 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));
     groupForm = new CreateEditGroupsForm(driver);
     groupForm.GoToGroups.Click();
     groupForm.addGroups();
     groupForm.IsOpened(wait);
 }