Get Text From an Object

Bug reports.
vamsi
Posts: 14
Joined: Thu Dec 11, 2014 12:17 pm

Get Text From an Object

Post by vamsi » Fri Jan 09, 2015 9:43 am

Hi,

I would like to know how is it possible to get text from an object whose class type is "AfxWnd90u" and WindowText is of type "MFCGridCtrl". I am currently using Ranorex version 4.1.4. I have attached screenshot for your reference.

regards,
Vamsi
Attachments
Ref.jpg
ScreenShot
Ref.jpg (213.87 KiB) Viewed 990 times

User avatar
odklizec
Ranorex Guru
Ranorex Guru
Posts: 3914
Joined: Mon Aug 13, 2012 9:54 am
Location: Zilina, Slovakia

Re: Get Text From an Object

Post by odklizec » Fri Jan 09, 2015 11:12 am

Hi,

Could you please upload ranorex snapshot of the object in question? Here is how to create one... http://www.ranorex.com/support/user-gui ... files.html

Anyway, if you are not able to identify the individual cells with Ranorex spy, then the element has most probably no or icorrectly implemented accessibility. Aside contacting developers to implement accessibility, your only hope is probably using GDI access. Please check this chapter of Ranorex user guide... http://www.ranorex.com/support/user-gui ... tions.html
After adding MFCGridCtrl to GDI capture list, you should be able to identify the individual grid texts using ranorex spy.
Pavel Kudrys
Ranorex explorer at Descartes Systems

Please add these details to your questions:
  • Ranorex Snapshot. Learn how to create one >here<
  • Ranorex xPath of problematic element(s)
  • Ranorex version
  • OS version
  • HW configuration