Page 1 of 1

FindChild method

Posted: Thu Jul 23, 2009 1:13 pm
by atom
Hiya

Can you explain what the LABEL parameter means for the FindChild method
What attribute is it applied to? or is it a RxPath ?
Can you give an example.

Thanks

Re: FindChild method

Posted: Thu Jul 23, 2009 2:15 pm
by Support Team
Hi atom,
label is just the name of the node as you can see in the element tree view in Ranorex Spy.
It`s a convenience function to find nodes based on the element tree view.

e.g.
repo.MenuBarExplorer.Self.FindChild<Ranorex.Button>("start").Click();
clicks on the desktop start button.

Regards,
Christian
Ranorex Support Team

Re: FindChild method

Posted: Fri Jul 24, 2009 2:50 pm
by atom
to get this straight "label" isnt applied to any attributes, only to the tag name itself?
can label be a regular expression?

Re: FindChild method

Posted: Mon Jul 27, 2009 8:44 am
by Support Team
It`s only the tag name of the node.
No, reg ex doesn`t work. You have to use the exact label string.

Regards,
Christian
Support Team