Capturing objects on Word document.
Posted: 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
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