GNOME Bugzilla – Bug 681172
getchild function
Last modified: 2012-08-04 00:51:18 UTC
I'm using .Net and this sample code: string[] children = window.GetChild("*") which returns an exception. Expected result: The same as string[] children = window.GetObjectList();
System.ArgumentException: parsing "*" - Quantifier {x,y} following nothing. at System.Text.RegularExpressions.RegexParser.ScanRegex() at System.Text.RegularExpressions.RegexParser.Parse(String re, RegexOptions op) at System.Text.RegularExpressions.Regex..ctor(String pattern, RegexOptions options, Boolean useCache) at Ldtpd.Utils.InternalGetObjectList(AutomationElement windowHandle, ArrayList& objectList, Hashtable& objectHT, String& matchedKey, Boolean needAll, String objName, String parentName, ControlType type, ObjInfo objInfo) in C:\Program Files (x86)\Perforce\depot\tools\WinLdtpdService\Ldtpd\Utils.cs:line 712 at Ldtpd.Generic.GetChild(String windowName, String childName, String role, String parentName) in C:\Program Files (x86)\Perforce\depot\tools\WinLdtpdService\Ldtpd\Generic.cs:line 1007
This issue has been fixed in git head and the latest binary has been updated to the download location. Thanks reporting this bug. Please verify and update the bug.