Page 1 of 1

How to find elements in container div by an attribute

Posted: Thu Dec 11, 2014 6:58 am
by niteshr
hi guys,

I have a bunch of elements with an attribute called "field". I get the container div like so:

Ranorex.DivTag divContainer = (Ranorex.DivTag) repo.container;

then there is a whole bunch of fieldset elements/ withing the fieldsets are the elements I need to find by attribute "field"

I get fieldsets like this:

IList<FieldSetTag> MyFields = divContainer.Find<FieldSetTag>(".//fieldset[@class='fld']");

How can I then search for all elements in the fieldset by attribute "field". I want to get the element type and all it's other attributes

Re: How to find elements in container div by an attribute

Posted: Fri Dec 12, 2014 10:45 am
by Support Team
Hello niteshr,

It would be really helpful if you could upload a Ranorex snapshot of your system under test. This would help us understanding the structure of your application.

Thank you in advance.

Regards,
Robert