Unable to differentiate two controls having the same propert

Technology specific object identification, supported applications, web technologies, and 3rd party controls.
sac.sharma
Posts: 4
Joined: Fri Jun 22, 2012 11:25 am

Unable to differentiate two controls having the same propert

Post by sac.sharma » Thu Aug 30, 2012 5:21 pm

I am facing problem to identify two Thtag controls having the same properties
.//table[#'tableDetails']/tbody/tr[2]/th[@innertext='Name']


How can i add some other property (like location)to one of them?
Image@RecordingTime.jpg
[email protected] (57.65 KiB) Viewed 734 times
Attachments
AfterDescendantSelection.jpg
AfterDescendantSelection.jpg (45.97 KiB) Viewed 734 times
samplescreen.jpg
samplescreen.jpg (70.39 KiB) Viewed 734 times

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

Re: Unable to differentiate two controls having the same propert

Post by Support Team » Fri Aug 31, 2012 3:46 pm

Hello,

The best way is to add a unique ID or to set another attribute to separate the two elements in your HTML code.
What's the difference between the two tables?
Could you send us a snapshot file please?

Regards,
Bernhard
Ranorex Support Team
.
Image