How Can White Work in RibbonBar?

Jan 28, 2010 at 1:41 AM
Edited Jan 28, 2010 at 1:42 AM

Hi All,

I am using White to test WPF application with RibbonBar controls.

However neither UISpy nor UIAVerify can find the controls, is there any solutions?

Thanks a lot!



Jan 28, 2010 at 2:48 AM

as far as i know. i can use AccExplorer32.exe to capture those controls in RibbonBar of Office2007, however I am not sure whether White can capture those controls as well.


Jan 28, 2010 at 3:43 AM

well, I managed to capture those controls by UIAVerify, you should do it in Hover Mode (under Mode menu).

Basically each control can be located.

I guess those controls in RibbonBar will be invisible if not focused, please correct me if i am wrong about this.

Jan 28, 2010 at 4:18 AM

By UIAVerify, I can get the control name.

then i can use customer control to capture it and click it.

Please ref following code: (using Office 2007 application, please ignore some customer functions)

            Window win = FindAplicationAndCaptureWindow("WINWORD", "xxxxx.doc [Compatibility Mode] - Microsoft Word");
            var TabInsert = win.Get(SearchCriteria.ByText("Insert"));

            var TabHome = win.Get(SearchCriteria.ByText("Home"));

            var TabReferences = win.Get(SearchCriteria.ByText("References"));

            var TabView = win.Get(SearchCriteria.ByText("View"));