DropDownMenu: textValue attribute is not saved : Automation API

DropDownMenu: textValue attribute is not saved

Class library usage, coding and language questions.

DropDownMenu: textValue attribute is not saved

Postby chfischer » Mon Mar 14, 2011 3:55 pm

Hi

Instead of clicking on the dropDownMenu and selecting the menuEntry, I am able to use the dropDownMenu as a textField.

I use it like this:
repo.Text__Currency.TextValue = "USD";

This way works a lot quicker and I need only one repository item, but the dropDownMenu "forgets" what ever is enterd after I click save.
Do I have to "commit" this entry somehow? or how to do this the easiest way?

Clicking around needs a lot of time compared to just setting this values (like I would do with a textField).

Ideas are very welcom!

Regards,
Christian
chfischer
 
Posts: 20
Joined: Fri Jan 14, 2011 11:44 am

Re: DropDownMenu: textValue attribute is not saved

Postby Ciege » Mon Mar 14, 2011 5:56 pm

So it looks like you are just setting the text value of your dropdown to "USD". Unfortunately, your AUT is expecting a click to happen to set the parameters of the dropdown to the item selected. It may be that there is an onclick fire event that needs to happen in the background when you actually click on an item that is not happening when you just set it's text value.

So, you need to either figure out what other properties of the dropdown need to be also set (like selected index or similar) -OR- determine what onclick event needs to be triggered and trigger that yourself -OR- just write the code to click the item and allow the AUT to operate as intended.
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...
User avatar
Ciege
 
Posts: 965
Joined: Thu Oct 16, 2008 7:46 pm
Location: Arizona, USA

Re: DropDownMenu: textValue attribute is not saved

Postby Support Team » Mon Mar 14, 2011 8:47 pm

As ciege already wrote, this depends on the implemention of the control. It might be sufficient to generate key press on the "Enter" key...

Regards,
Alex
Ranorex Team
User avatar
Support Team
Site Admin
 
Posts: 4840
Joined: Fri Jul 07, 2006 5:30 pm
Location: Graz, Austria


Return to Automation API

Who is online

Users browsing this forum: No registered users and 0 guests