Page 1 of 1

FindChildren

Posted: Mon Jul 15, 2019 11:27 am
by harveyclayton
The method "FindChildren" only searches for immediate child elements
What method can be call to find ALL child elements
(i.e. children at any depth, not just immediate)

Re: FindChildren

Posted: Mon Jul 15, 2019 4:53 pm
by odklizec
Hi,

Please post a Ranorex snapshot (NOT screenshot) of the GUI you are trying to automate and xpath of element, in which you want to find its children. Thanks.

Re: FindChildren

Posted: Tue Jul 16, 2019 10:15 am
by manish
Hey,

If you want to search for all elements of a particulr type you can use the Find method like this

Code: Select all

 IList<TdTag> tdTags = element.Find<TdTag>(".//td[@class='classname']");   
This code will search for all elements with td tag below the root element.

BR
Manish