Capturing objects on Word document.

Ask general questions here.
rkarhe
Posts: 42
Joined: Thu Jul 28, 2011 5:31 am

Capturing objects on Word document.

Post by rkarhe » Mon Aug 01, 2011 9:52 am

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

rkarhe
Posts: 42
Joined: Thu Jul 28, 2011 5:31 am

Re: Capturing objects on Word document.

Post by rkarhe » Mon Aug 01, 2011 10:09 am

Thanks All, I got this, Ranorex supports TabPage.

NavinSP
Posts: 1
Joined: Thu May 01, 2014 2:49 pm

Re: Capturing objects on Word document.

Post by NavinSP » Thu May 01, 2014 3:20 pm

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

User avatar
Support Team
Site Admin
Site Admin
Posts: 11709
Joined: Fri Jul 07, 2006 4:30 pm
Location: Graz, Austria

Re: Capturing objects on Word document.

Post by Support Team » Tue May 06, 2014 3:14 pm

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
.
Image