private void ViewUsersScreen_Load(object sender, EventArgs e) { SortedDictionary <int, Entity> allUsers = UserManagement.GetSortedDictionary(); loadSearchResults(allUsers); if (UserManagement.getCurrentUserID() != 100000) { CreateNewUserBtn.Hide(); } }
public void CreateUserFunc(IWebElement UserEmailTextBox, String value, IWebElement UserRole, IWebElement UserRoleOptions, int ddloption, IWebElement FirstName, String fnamevalue, IWebElement LastName, String lnamevalue, IWebElement CreateBtn) { DriverUtils.LaunchBrowser("http://cos-test.psr.rd.hpicorp.net/COSWeb/ManageUser/UserManagement"); CreateNewUserBtn.Click(); UserEmailTextBox.EnterText(value); BasicMethods.DropDownFunction(UserRole, UserRoleOptions, ddloption); FirstName.EnterText(fnamevalue); LastName.EnterText(lnamevalue); //IsUserActiveFlag.Click(); //Validations.validateElementIsEnabled(CreateUserBtn); CreateUserBtn.Click(); Thread.Sleep(5000); // CreateUserCloseBtn.Click(); }