/// <summary> /// Returns a BugInformation with information from the given A11yElement /// </summary> /// <param name="this"></param> /// <returns></returns> public static IssueInformation GetIssueInformation(this A11yElement element, IssueType issueType) { return(new IssueInformation( glimpse: element.Glimpse, processName: element.GetProcessName(), windowTitle: element.GetOriginAncestor(Axe.Windows.Core.Types.ControlType.UIA_WindowControlTypeId).Glimpse, elementPath: string.Join("<br/>", element.GetPathFromOriginAncestor().Select(el => el.Glimpse)), internalGuid: Guid.NewGuid(), issueType: issueType)); }