surszer wrote:I got no results while using FindChildren<Ranorex.Control>()
Getting a list of
Controls only works for Windows Forms application. Does your application use Windows Forms controls? If so, use the FindDescendants to get
all WinForms controls in your application:
IList<Ranorex.Control> allControls = myForm.FindDescendants<Ranorex.Control>();
surszer wrote:so I had to look for each type of control (buttons, textboxes, checkboxes...) individually like this
Otherwise, if it is not a WinForms application, it's much easier to just search for all elements using the generic
Unknown adapter that will accept any element, then you don't need all the if/else clauses or for loops:
IList<Ranorex.Unknown> allElements = myForm.Find<Ranorex.Unknown>(".//");surszer wrote:As far as I know there is no possibility to cast from Ranorex.Button (or a similar class like Ranorex.CheckBox) to Ranorex.Control
You cannot "cast", but you can use different adapter types for the same element. However, using the
Control adapter will only work if the element corresponds to a Windows Forms Control, thereby supporting this adapter type. See following section in the Ranorex User Guide for more information:
http://www.ranorex.com/support/user-gui ... x-spy.htmlsurszer wrote:unfortunately I can't send you a snapshot.
Without a Ranorex snapshot or sample application it is difficult for us to analyze the issue. If you don't want (or are not allowed) to share a snapshot in the forum, could you send one to support_at_ranorex.com?
And can you tell us some more about the automated application? Which UI technology/framework does it use?
Regards,
Alex
Ranorex Team