Text font information

Ask general questions here.
SanMan
Posts: 210
Joined: Tue Apr 13, 2010 9:59 am

Text font information

Post by SanMan » Tue Feb 08, 2011 7:44 am

:?
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 :(

User avatar
Support Team
Site Admin
Site Admin
Posts: 12145
Joined: Fri Jul 07, 2006 4:30 pm
Location: Houston, Texas, USA
Contact:

Re: Text font information

Post by Support Team » Tue Feb 08, 2011 12:53 pm

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

User avatar
sdaly
Posts: 238
Joined: Mon May 10, 2010 11:04 am
Location: Dundee, Scotland

Re: Text font information

Post by sdaly » Tue Feb 08, 2011 4:12 pm

I think you can get the size using the rawtext plugin.....