This project is read-only.

Test Microsoft Office

Mar 4, 2010 at 3:52 PM


My program is intergrated with Microsoft Office. e.g. It can call the Word. But during my

debugging of white test, many widgets in the Word can not be found by White, for example, the toolbar button "Save"

can not be called like this

Button btn=win.Get<Button>("Save") 

The Word window is already found by white, but many controls is not visible.

What may be the problem?

Thanks very much!

Best regards


Mar 5, 2010 at 6:49 AM


have you try LogStructure() ?

UISpy or UIAVerify sees this element so White should find it.

maybe try:

IUIItem[] buttons = win.GetMultiple(SearchCriteria.ByControlType(ControlType.Button));

this will give you a list with all Buttons.


to get only buttons of a special part get the parent elements first => the save button is part of a toolbar which contains hierarchical panes.

See UISpy for visible tree





Mar 12, 2010 at 2:29 PM

Thanks very much! But I can't also find the button.

This Button "Save" is in the sub window of "Save as..." in MS Office Excel, when I want to save a excel document.

Thanks a lot !