Select item using label (innertext)

Class library usage, coding and language questions.
Posts: 4
Joined: Tue Aug 27, 2013 12:26 am

Select item using label (innertext)

Post by delfindevassy » Thu Nov 28, 2013 1:30 am

Team, I am struggling to select an item from drop down with its label.

I have a drop-down box which has three items in it. Each item has an ID and and a lable. If I set the TagValue with correct ID it works fine. But If I try to select based on the label, it doesn't go through. In a user perspective, they will be choosing a value based on its label right?
Item Selection in a dropdown.png
Object spy of the drop-down under discussion
Item Selection in a dropdown.png (85.72 KiB) Viewed 1500 times

Posts: 92
Joined: Thu Oct 10, 2013 10:40 am

Re: Select item using label (innertext)

Post by Swisside » Thu Nov 28, 2013 10:55 am


option[@innertext='Default Job Listing'] doesn't work ?

A simple thank you always does wonders !

User avatar
Support Team
Site Admin
Site Admin
Posts: 12173
Joined: Fri Jul 07, 2006 4:30 pm
Location: Houston, Texas, USA

Re: Select item using label (innertext)

Post by Support Team » Fri Nov 29, 2013 11:18 am

Hello delfindevassy,

Do you still experience this issue?
If yes, could you please post or send us ([email protected]) a Ranorex Snapshot of your application.
This would help us in analyzing your issue.
Please take a look at our User Guide for more information on how to create snapshot files.

Thanks in advance.

Markus (T)