public void RegisterRandomUser() { RandomStringGenerator generator = new RandomStringGenerator(); this.UsernameTextBox.Text = generator.GetString(8); this.PasswordTextBox.Text = "123456"; this.RepeatPasswordTextBox.Text = "123456"; this.FirstNameTextBox.Text = "ТестИме"; this.LastNameTextBox.Text = "ТестФамилия"; this.EmailTextBox.Text = generator.GetString(8) + "@test.com"; this.TermAndConditionsCheckBox.MouseClick(MouseClickType.LeftClick); this.SubmitButton.Click(); }
public void AdminRolesAddRole() { RandomStringGenerator generator = new RandomStringGenerator(); string roleName = "LichInitRole-" + generator.GetString(7); this.rolesPage.AddRole(roleName); KendoGrid grid = this.rolesPage.Browser.Find.ByExpression<KendoGrid>("data-role=grid"); this.rolesPage.AssertRoleIsPresentInGrid(grid, roleName); grid = this.rolesPage.Browser.Find.ByExpression<KendoGrid>("data-role=grid"); this.rolesPage.DeleteRow(grid, roleName, 2); }
public void AdminRolesEditRole() { RandomStringGenerator generator = new RandomStringGenerator(); string initialRoleName = "LichInitRole-" + generator.GetString(7); this.rolesPage.AddRole(initialRoleName); string newRoleName = "LichRenamed-" + generator.GetString(8); KendoGrid grid = this.rolesPage.Browser.Find.ByExpression<KendoGrid>("data-role=grid"); this.rolesPage.EditRow(grid, initialRoleName, "Name", newRoleName, 2); grid = this.rolesPage.Browser.Find.ByExpression<KendoGrid>("data-role=grid"); this.rolesPage.AssertRoleIsNotPresentInGrid(grid, initialRoleName); this.rolesPage.AssertRoleIsPresentInGrid(grid, newRoleName); this.rolesPage.DeleteRow(grid, newRoleName, 2); }