After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 681172 - getchild function
getchild function
Status: RESOLVED FIXED
Product: LDTP
Classification: Other
Component: ldtp2
Cobra2.x
Other Windows
: Normal normal
: ---
Assigned To: LDTP Development Mailing List
LDTP Development Mailing List
Depends on:
Blocks:
 
 
Reported: 2012-08-03 22:34 UTC by Konstantin
Modified: 2012-08-04 00:51 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Konstantin 2012-08-03 22:34:15 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();
Comment 1 Nagappan Alagappan 2012-08-04 00:32:19 UTC
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
Comment 2 Nagappan Alagappan 2012-08-04 00:51:18 UTC
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.