/// <summary> /// Send as many activities as you want to this method, and this will determine if they need credit validation, and if so, they will validate them. Specificaly, /// for activities that need credit validation, this clicks on the the Self Reporting tab on the Program Page of Lifetime support, clicks the Actions>Validate /// link for a user-specified activity, waits for the Credit Validation page to appear, clicks the Accept radio button, clicks the Submit button, and waits for /// the page to be done loading. /// </summary> /// <param name="activities"><see cref="Activity"/></param> public static void ValidateCreditsIfApplicable(IWebDriver browser, UserInfo user, params Activity[] activities) { LSHelperMethods LSHelp = new LSHelperMethods(); foreach (Activity act in activities) { if (act.RequiresValidation) { LSHelp.ValidateCredit(browser, "Royal College of Physicians", user.FullName, "Maintenance of Certification", act.ActivityName); } } }