Text.TextValue : Bug Reports

Text.TextValue

Bug reports and feature requests.

Text.TextValue

Postby atom » Sat Oct 03, 2009 12:58 pm

Hiya

I have an MFC Text box
If i use method Text.TextValue="Hello"
The MFC control fails to see that ive modified the text, and will use its original value

Is this a known problem?

thanks
atom
 
Posts: 321
Joined: Mon Dec 08, 2008 12:14 am
Location: Dublin, Ireland

Re: Text.TextValue

Postby Support Team » Mon Oct 05, 2009 10:58 am

Setting the Text.TextValue property works for standard MFC edit controls. There could be a problem though if it is a custom MFC control which overrides the handling of the WM_SETTEXT message and does not correctly react to that message. E.g. if the control holds an internal variable for its text and does not update that variable when the WM_SETTEXT message is sent.

In general, for testing purposes its better to use the Ranorex.Keyboard class to enter text, since this is the actual way a user would put in text into controls. Setting a Ranorex.Adapter property always uses some technology dependent technique to communicate with the actual UI element, i.e. a technique different from how a human user would do it - you could even do things a human user can't do.

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

Re: Text.TextValue

Postby atom » Mon Oct 05, 2009 8:01 pm

Ok thank, I wrapped the TextValue method into one using Keyboard and its Ok now
atom
 
Posts: 321
Joined: Mon Dec 08, 2008 12:14 am
Location: Dublin, Ireland


Return to Bug Reports

Who is online

Users browsing this forum: No registered users and 0 guests