Get Text From an Object

Bug reports.
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


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.

Ref.jpg (213.87 KiB) Viewed 1482 times

User avatar
Ranorex Guru
Ranorex Guru
Posts: 6548
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


Could you please upload ranorex snapshot of the object in question? Here is how to create one... ... 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... ... 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