Page 1 of 1

Capturing objects on Word document.

Posted: Mon Aug 01, 2011 9:52 am
by rkarhe
Hi All,

I am trying to capture elements on word document using following code. My word doc name here is "ClsEditor.docx'". On this doc I want to capture "File" menu.

Ranorex.Form wordDoc = "/form[@title~'^ClsEditor.docx']"; //Works fine here
wordDoc.Activate();
Ranorex.MenuTag clauseEditor = wordDoc.FindSingle(".//tabpage[@accessiblename='File']"); //Gives exception "The element does not support required capability Button." What should I use here instead Button. I have already tried with MenuTag, MenuItem.

Thanks,
Rocky

Re: Capturing objects on Word document.

Posted: Mon Aug 01, 2011 10:09 am
by rkarhe
Thanks All, I got this, Ranorex supports TabPage.

Re: Capturing objects on Word document.

Posted: Thu May 01, 2014 3:20 pm
by NavinSP
Hi Rocky,

Could you please let me know the code to capture the element from word document.

I'm trying to verify some data on word document but the issue is ranorex spy not going inside the word document.

Thanks
Navin

Re: Capturing objects on Word document.

Posted: Tue May 06, 2014 3:14 pm
by Support Team
Hello NavinSP,

May I ask you to answer following questions?
  • • Which Ranorex version do you currently use?
    • Which Microsoft Word version do you use?
    • Which elements (inside Microsoft Word) are you trying to verify?
Thank you in advance.

Regards,
Robert