Page 1 of 1

Text font information

Posted: Tue Feb 08, 2011 7:44 am
by SanMan
:?
I have tried to get the font information (size, underlined...) from the text, but have not succeed.

I have a text in the Control |TypeName | Rich Text Box and I need to verify text font information

How to get the information?

I also tried to get the text font information from text in the Wordpad, but could not get it neather :(

Re: Text font information

Posted: Tue Feb 08, 2011 12:53 pm
by Support Team
Hi,

basically Ranorex can only present information which is provided by its UI adapters.
It depends on the technology underlying your application under test if you can get more information (as provided directly via accessibility) out of the adapter. If you application is based on WinForms you can try to use the Get/SetPropertyValue methods.
For more details have a look at Ranorex GUI Adapter.
If you use a web based technology you may use the Get/SetStyle methods (GetStyle, SetStyle).

Kind regards,
Tobias
Support Team

Re: Text font information

Posted: Tue Feb 08, 2011 4:12 pm
by sdaly
I think you can get the size using the rawtext plugin.....