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

Problems handling dropdowns.

5 Answers 51 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Alex
Top achievements
Rank 1
Alex asked on 22 Apr 2011, 08:41 AM
I am facing problems with dropdowns handling. I tried to capture the dropdown values also, but when i run the script value doesnt change and script fails. Please check the video and screenshot and advice how to surround this problem. Dropdown expands when user types values in the field. I cant handle the event.

Here is the link to the video: http://karamfilov.com/cant-handle-post-code.swf
Here is screenshot: http://karamfilov.com/postcode.jpg

I will highly appreciate your help because most of the fields in the projects are with same logic. Without solution i cant proceed further with automation. I am using WebUI Test Edition. Not a trial version.

5 Answers, 1 is accepted

Sort by
0
Stoich
Telerik team
answered on 22 Apr 2011, 10:32 AM
Hello Alex,
    my suggestion would be to use the SimulateRealTyping feature (see screenshot 1). This will probably fire the necessary event and expand the drop-down.

Let me know how it goes.

Kind regards,
Stoich
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
0
Alex
Top achievements
Rank 1
answered on 22 Apr 2011, 10:41 AM
Hello Stoich,
It triggered the event. The menu with post codes is being expanded, i will try to select value and let you know how is working.

you can see the result here: http://karamfilov.com/result.swf
0
Stoich
Telerik team
answered on 26 Apr 2011, 11:43 AM
Hello Alex,
   did you manage to successfully your automation solution? Do you require any further assistance?

Greetings,
Stoich
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
0
Alex
Top achievements
Rank 1
answered on 26 Apr 2011, 12:06 PM
Hello Stoich,
First of all thanks for asking :) . I was able to trigger the event with simulating real typing, but after that i cant capture the value of the post code dropdown. You can see it on the video here: http://karamfilov.com/result.swf
If you have any ideas how to capture the value it will be great. We have such controls very often and if i find the solution it will be very important for my future work.
0
Stoich
Telerik team
answered on 29 Apr 2011, 12:15 PM
Hello Alex,
    is the Id as taken from the element's Find Logic correct? Dynamically-generated IDs often cause problems for Test Automation tasks. Check out this KB article:
http://www.telerik.com/automated-testing-tools/support/kb/working-around-dynamically-generated-id-attributes.aspx

Another thing you can do is is increase the timeout for this element as seen here:
http://www.telerik.com/automated-testing-tools/support/kb/setting-ample-timeouts-in-your-test.aspx

I hope this helps.

All the best,
Stoich
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
Tags
General Discussions
Asked by
Alex
Top achievements
Rank 1
Answers by
Stoich
Telerik team
Alex
Top achievements
Rank 1
Share this question
or