public IEnumerable <RemoteWindow> GetWindowsByTitleContains(string windowTitle) { return(WindowHandles .Where(handle => WindowHelper.GetWindowText(handle).Contains(windowTitle)) .Select(handle => new RemoteWindow(m_Process, handle))); }
public IEnumerable <RemoteWindow> GetWindowsByClassName(string className) { return(WindowHandles .Where(handle => WindowHelper.GetClassName(handle).Equals(className, StringComparison.Ordinal)) .Select(handle => new RemoteWindow(m_Process, handle))); }
public IEnumerable <RemoteWindow> GetWindowsByTitle(string windowTitle) { return(WindowHandles .Where(handle => WindowHelper.GetWindowText(handle).Equals(windowTitle, StringComparison.Ordinal)) .Select(handle => new RemoteWindow(m_Process, handle))); }