Issue with Ilist in ranorex 4.1

Bug reports.
zakhir.khan
Posts: 1
Joined: Thu Jan 02, 2014 2:37 pm

Issue with Ilist in ranorex 4.1

Post by zakhir.khan » Thu Jan 02, 2014 3:01 pm

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]
You do not have the required permissions to view the files attached to this post.

MarkusT

Re: Issue with Ilist in ranorex 4.1

Post by MarkusT » Fri Jan 03, 2014 1:14 pm

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)