This is a migrated thread and some comments may be shown as answers.

[Solved] SelectDropDownActionDescriptor SelectDropDownType to ‘ByText’ question

2 Answers 47 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Espen Harlinn
Top achievements
Rank 1
Espen Harlinn asked on 15 Sep 2009, 12:09 PM

When I’m working in WebUI Test Studio it generates a SelectDropDownActionDescriptor when I interact with a select field. By default SelectDropDownType is set to ‘ByIndex’. What I want is ‘ByText’. When I change SelectDropDownType to ‘ByText’ the tool still insists on having a value for SelectionIndex since when I clear the field I get a ‘Property value is not valid’ with ‘is not a valid value for Int32.’ in the details pane.


Is the SelectionIndex ignored when I change SelectDropDownType to ‘ByText’ but still required because of UI idiosyncrasies?  


Or is SelectDropDownType  ‘ByText’ not working?

Regards

Espen Harlinn

2 Answers, 1 is accepted

Sort by
0
Cody
Telerik team
answered on 15 Sep 2009, 02:12 PM
Hello Espen Harlinn,

You can safely disregard the error message. As you suspected, it's an idiosyncracy of the UI. It's Visual Studio that'sdoing basic validation and requiring a valid number be entered into the field even though it's ignored at run time.

Just remember that ByText uses the selection text as a partial text string. i.e. it will select the first item that contains the selection string in the option's text.

Sincerely yours,
Cody
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
0
Espen Harlinn
Top achievements
Rank 1
answered on 17 Sep 2009, 08:57 AM
Ok,

Thank you.

Espen
Tags
General Discussions
Asked by
Espen Harlinn
Top achievements
Rank 1
Answers by
Cody
Telerik team
Espen Harlinn
Top achievements
Rank 1
Share this question
or