How to find elements in container div by an attribute

Technology specific object identification, supported applications, web technologies, and 3rd party controls.
niteshr
Posts: 18
Joined: Fri Jul 11, 2014 7:41 am

How to find elements in container div by an attribute

Post by niteshr » Thu Dec 11, 2014 6:58 am

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

User avatar
Support Team
Site Admin
Site Admin
Posts: 11709
Joined: Fri Jul 07, 2006 4:30 pm
Location: Graz, Austria

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

Post by Support Team » Fri Dec 12, 2014 10:45 am

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