How can i fetch combobox's selected value

Ask general questions here.
ruchitajadhav
Posts: 7
Joined: Thu Apr 19, 2012 1:02 pm

How can i fetch combobox's selected value

Post by ruchitajadhav » Thu Apr 19, 2012 1:15 pm

Hi,
I am unable to get the exact property to display combox's current selected value.Kindly help.

User avatar
Ciege
Ranorex Guru
Posts: 1335
Joined: Thu Oct 16, 2008 6:46 pm
Location: Arizona, USA

Re: How can i fetch combobox's selected value

Post by Ciege » Thu Apr 19, 2012 5:31 pm

can you post a RanorexSnapshot so we can see your element? Need to determine what type of combo box it is and where the selected value information is stored.
If this or any response has helped you, please reply to the thread stating that it worked so other people with a similar issue will know how you fixed your issue!

Ciege...

ruchitajadhav
Posts: 7
Joined: Thu Apr 19, 2012 1:02 pm

Re: How can i fetch combobox's selected value

Post by ruchitajadhav » Fri Apr 20, 2012 5:55 am

Hi,
PFA the snapshot showing the page having combobox and its ranorex path.The page is developed in asp.net
Attachments
ranorexsnapshot.png
ranorexsnapshot.png (49.73 KiB) Viewed 1923 times

User avatar
Ciege
Ranorex Guru
Posts: 1335
Joined: Thu Oct 16, 2008 6:46 pm
Location: Arizona, USA

Re: How can i fetch combobox's selected value

Post by Ciege » Fri Apr 20, 2012 4:03 pm

A screenshot isn't of (very) much use.
Please see here on how to make a RanorexSnapshot with RanorexSpy. This will help us in evaluating your AUT and determine how to assist you with your query.

http://www.ranorex.com/support/user-gui ... files.html
If this or any response has helped you, please reply to the thread stating that it worked so other people with a similar issue will know how you fixed your issue!

Ciege...

ruchitajadhav
Posts: 7
Joined: Thu Apr 19, 2012 1:02 pm

Re: How can i fetch combobox's selected value

Post by ruchitajadhav » Mon Apr 23, 2012 6:34 am

Hi,
Attaching a ranorex snapshot on which you can find comboboxes for which i want selected value of a combobox
Attachments
snap.zip
(161.09 KiB) Downloaded 253 times

User avatar
Ciege
Ranorex Guru
Posts: 1335
Joined: Thu Oct 16, 2008 6:46 pm
Location: Arizona, USA

Re: How can i fetch combobox's selected value

Post by Ciege » Mon Apr 23, 2012 4:35 pm

Looks like in your instance the TagValue of your list box is set to 1 which correlates to 'Option 1' which appear to be the available options within your list box.

You may need to evaluate what all Options are listed below the select element then evaluate what option 1 is (or whichever tag value is set on the list).
If this or any response has helped you, please reply to the thread stating that it worked so other people with a similar issue will know how you fixed your issue!

Ciege...

Ravindra.D
Posts: 6
Joined: Fri Feb 18, 2011 1:11 pm

Re: How can i fetch combobox's selected value

Post by Ravindra.D » Tue Apr 24, 2012 12:21 pm

Thanks Ciege,

For the prompt reply...
Thanks & Regards,
Ravindra Dave
Email : [email protected]