FindChildren

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

FindChildren

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
odklizec
Ranorex Guru
Ranorex Guru
Posts: 5071
Joined: Mon Aug 13, 2012 9:54 am
Location: Zilina, Slovakia

Re: FindChildren

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

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.
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

manish
Posts: 45
Joined: Fri Aug 10, 2018 12:46 pm

Re: FindChildren

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

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