Page 1 of 1

Unable to identify content of Word Doc 2010 using Object Spy

Posted: Thu Aug 20, 2015 7:20 am
by secloreqa
Hi all,
I am trying to add a validation point in my Test Script using the Content of File Document (Microsoft Word 2007 and 2010).

So, for making sure the file has opened successfully, I want to check the content of the file against the base initial Text, but I am not able to get any property for the same.

Object Spy is not able to identify the Document Content. This issue does not arise when using MS Word 2013.

Also, Office controls are not being identified by the spy.

Please let me know if there is something which I am missing.

Thanks,

Re: Unable to identify content of Word Doc 2010 using Object Spy

Posted: Thu Aug 20, 2015 2:22 pm
by odklizec
Hi,

I'm not sure about Word 2010 recognition support, but have you tried GDI access approach described here:
http://www.ranorex.com/support/user-gui ... tions.html

Eventually, you may try to send Ctrl+A and Ctrl+C shortcuts to the word app (this should select and copy the text from Word), then paste the copied text somewhere or fill a string variable and analyze its content.