Ranorex.SelectTag SELECTTAG = "//td[@id='lovTermBlock']/div[@id='lovTermSelect']/select/option[@value='";
SELECTTAG .Click();
Ranorex.OptionTag OPTIONTAG=" //td[@id='lovTermBlock']div[@id='lovTermSelect']selectoption[@value='TESTVALUE']";
OPTIONTAG.Selected = true;
I am not able to selece TESTVALUE from DropDown List..
Please suggest me any way to solve this issue...
Also, I tried with solution provided here :-http://www.ranorex.com/forum/unable-to- ... t3413.html
But still no luck
Unable to Select Option from Option Tag
Re: Unable to Select Option from Option Tag
What error are you getting?
Is TESTVALUE the actual item in the list you are trying to select or is that a variable?
Anything else you can share to help describe your issue?
Is TESTVALUE the actual item in the list you are trying to select or is that a variable?
Anything else you can share to help describe your issue?
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...
Ciege...
Re: Unable to Select Option from Option Tag
It Is Actual Value from List..
Re: Unable to Select Option from Option Tag
More information related to your issue is still needed...
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...
Ciege...
Re: Unable to Select Option from Option Tag
Can you please let me know what kind of information do you require ..
- Support Team
- Site Admin
- Posts: 12145
- Joined: Fri Jul 07, 2006 4:30 pm
- Location: Houston, Texas, USA
- Contact:
Re: Unable to Select Option from Option Tag
Hi,
Is @value the right thing to search for?
Which error-message did you get?
Further on, if you use optionTag.selected = true you don't need to click the selectTag first.
Try to list all your optionTags to see what might went wrong:
Larissa
Ranorex Support Team
Is this your path to the OptionTag? If yes, there is a '/' missing.Ranorex.OptionTag OPTIONTAG=" //td[@id='lovTermBlock']div[@id='lovTermSelect']selectoption[@value='TESTVALUE']";
Is @value the right thing to search for?
Which error-message did you get?
Further on, if you use optionTag.selected = true you don't need to click the selectTag first.
Try to list all your optionTags to see what might went wrong:
SelectTag someSelectTag = "yourSelectTagPath"; IList<OptionTag> list = someSelectTag.FindChildren<OptionTag>(); foreach(OptionTag opTag in list){ // Output of all Option Tags Report.Info("OptionTag: "+opTag.InnerText); // Selection of yourTag if(opTag.InnerText=="YourTag") opTag.Selected= true; }Regards,
Larissa
Ranorex Support Team