Page 1 of 1

Issue with Ilist in ranorex 4.1

Posted: Thu Jan 02, 2014 3:01 pm
by zakhir.khan
When i use ilist to recognize the count of particular web document find the count to be 0
(attachment : ilist.jpg)

[code : C# ]
IList<Ranorex.WebDocument> Allwindow2 = Ranorex.Host.Local.FindChildren<Ranorex.WebDocument>(".//dom[@domain='xxxx']");
[/code]

But when i use the same with Find single , iam able to recognize the window. (attachment :web document.jpg)

[code : C# ]
Ranorex.WebDocument goog = Ranorex.Host.Local.FindSingle(".//dom[@domain='xxxx']");
[/code]

Re: Issue with Ilist in ranorex 4.1

Posted: Fri Jan 03, 2014 1:14 pm
by MarkusT
Hello zakhir,

The method FindChildren() needs a defaultlabel attribute as a string argument compared to FindSingle() which uses the RanoreXPath of the element.
Please take a look at our API documentation:
FindDescendant method
FindSingle method

Please let me know if you need further advice.

Regards,
Markus (T)