public static By RelatedOrgName(string orgId) => CustomBy.DataTestId($"related-org-name-{orgId.ToLower()}");
public static By RemoveLink(string orgId) => CustomBy.DataTestId($"related-org-remove-{orgId.ToLower()}");
/// <summary> /// Get a list of the capabilities for the chosen solution /// </summary> /// <param name="solution"></param> /// <returns>List of capability names</returns> public IList <string> GetCapabilitiesForSolution(IWebElement solution) { IList <IWebElement> capabilities = solution.FindElements(CustomBy.DataTestId("capability-section-value")); return(capabilities.Select(s => s.Text).ToList()); }
/// <summary> /// Get list of features for a particular solution /// </summary> /// <param name="solution"></param> /// <returns>List of names of features</returns> public IList <string> GetFeaturesForSolution(IWebElement solution) { return(solution.FindElements(CustomBy.DataTestId("features-value")).Select(s => s.Text).ToList()); }
/// <summary> /// Ensure each solution has a summary section /// </summary> /// <returns></returns> public bool SolutionHasSummary() { IWebElement solution = GetFirstSolution(); return(solution.FindElement(CustomBy.DataTestId("summary-section-value")).Displayed); }
public static By OrganisationLinksId(string id) => CustomBy.DataTestId($"org-name-{id}");