Ask general questions here.
Posts: 1
Joined: Mon Jul 15, 2019 11:06 am


Post by harveyclayton » Mon Jul 15, 2019 11:27 am

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)

User avatar
Ranorex Guru
Ranorex Guru
Posts: 6517
Joined: Mon Aug 13, 2012 9:54 am
Location: Zilina, Slovakia

Re: FindChildren

Post by odklizec » Mon Jul 15, 2019 4:53 pm


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.
Pavel Kudrys
Ranorex explorer at Descartes Systems

Please add these details to your questions:
  • Ranorex Snapshot. Learn how to create one >here<
  • Ranorex xPath of problematic element(s)
  • Ranorex version
  • OS version
  • HW configuration

Certified Professional
Certified Professional
Posts: 53
Joined: Fri Aug 10, 2018 12:46 pm

Re: FindChildren

Post by manish » Tue Jul 16, 2019 10:15 am


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.