Ranorex

Recommended method for recording large drop down selection

 
Post new topic   Reply to topic    Ranorex Forum Index -> RanorexRecorder
View previous topic :: View next topic  
Author Message
jasong



Joined: 26 Oct 2007
Posts: 49
Location: Texas

PostPosted: Mon Oct 29, 2007 8:24 pm    Post subject: Recommended method for recording large drop down selection
We have some dropdowns with more than a 100 possible selections in the dropdown (regions here). I have not found a way to be able to automate this yet.
I notice that the particular element is selected (example: Spam) from the dropdown. I see this in the UI of the recorder and the script.

However, the playback seems to choke on the navigation through that list. Scrolling with a mouse wheel does not work and neither does the 'page down' method on the scroll bar (like with http://www.ranorex.com/forum/cannot-read-element--und-quotpage-down-un d-quot-position-(vscroll-t283.html). Another method that does not work is grabbing the scroll selection widget and moving up or down. I suspect this is the same on all vert scrolls and perhaps horiz scrolls too?

When I try using the arrow keys and hitting 'Enter' or clicking the entry this does not work either.

Any hints?

Jason
Back to top
View user's profile Send private message
Support Team
Site Admin


Joined: 07 Jul 2006
Posts: 257

PostPosted: Tue Oct 30, 2007 11:47 am    Post subject:
Well, using the RanorexRecorder Beta1 you might not be able to automate every scrollbar just by recording and replaying. You can try to edit the generated code, though.

In the 1.3 release all the methods you mentioned should work (except for the mouse wheel that is not supported by the RanorexRecorder and can only be automated using the RanorexCore libraries directly).

Alex
Ranorex Support Team
Back to top
View user's profile Send private message Visit poster's website
jasong



Joined: 26 Oct 2007
Posts: 49
Location: Texas

PostPosted: Tue Oct 30, 2007 6:38 pm    Post subject:
Thanks for the info,
any idea offhand what actions scroll up and down generate or more specifically what Python methods would be called for these actions?

Jason
Back to top
View user's profile Send private message
Support Team
Site Admin


Joined: 07 Jul 2006
Posts: 257

PostPosted: Wed Oct 31, 2007 11:21 am    Post subject:
The easiest way is to generate keyboard events and send them to the dropdown control.

So you need to search for the DrowDown control by its title or class name (FormFind function) and then send keys using the ControlSendKeys function (see the documentation at http://www.ranorex.com/Documentation/Python/group___control_functions_ g38cd981b85c5939b2a8f6383d713a0c3.html#g38cd981b85c5939b2a8f6383d713a0 c3).

Alex
Ranorex Support Team
Back to top
View user's profile Send private message Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic    Ranorex Forum Index -> RanorexRecorder All times are GMT + 2 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum