HOw can I find the number of links in a frame?
Newbie to Ranorex
IList<Ranorex.ATag> AllATags = MyFrame.FindDescendants<Ranorex.ATag>();int count = AllATags.Count; foreach (Ranorex.ATag MyTag in AllATags)
{
//Do Stuff
}I have a question tho. Now at some point I am going to define an object say Alltabs which could be a DivTag, or ATag or SpanTag or any other tag. Now how do I declare this object Alltabs in the beginning of the script?
Ranorex.ATag DOMlink;
Ranorex.InputTag DOMInput;
Ranorex.ImgTag DOMImage;
Ranorex.SelectTag DOMCombo;
Anu wrote:I want to use the same name "AllTags" in a reusable function, and everytime I call the function I could be looking for ATags, or SpanTags or inputtags depending on what i am going to find
Return to Object Identification and Technologies
Users browsing this forum: No registered users and 0 guests