public void AddEntryWithParams(string aTitle, string aUsername, string aPassword, string aURL) { KeePassTestSuiteRepository MyRepo = KeePassTestSuiteRepository.Instance; // Set text fields MyRepo.AddEntry.Title.TextValue = aTitle; MyRepo.AddEntry.UserName.TextValue = aUsername; MyRepo.AddEntry.Password.TextValue = aPassword; MyRepo.AddEntry.Repeat.TextValue = aPassword; MyRepo.AddEntry.URL.TextValue = aURL; }
public void AddEntryWithParams(string aTitle, string aUsername, string aPassword, string aURL, string aIconIndex, string aExpires) { KeePassTestSuiteRepository MyRepo = KeePassTestSuiteRepository.Instance; // Set text fields MyRepo.AddEntry.Title.TextValue = aTitle; MyRepo.AddEntry.UserName.TextValue = aUsername; MyRepo.AddEntry.Password.TextValue = aPassword; MyRepo.AddEntry.Repeat.TextValue = aPassword; MyRepo.AddEntry.URL.TextValue = aURL; // Set Repository Variables MyRepo.varExpires = aExpires; MyRepo.varIconIndex = aIconIndex; // Set Icon MyRepo.AddEntry.MBtnIcon.Click(); MyRepo.IconPicker.LI_Icon.Select(); MyRepo.IconPicker.ButtonClose.Click(); // Set Expires MyRepo.AddEntry.MBtnStandardExpires.Click(); MyRepo.KeePass.MI_Expires.Click(); }