Cannot find SandDock's DockableWindow

Nov 10, 2009 at 8:13 PM

Hi,

SandDock is a 3rd party Docking Library. UIAVerify shows the DockableWindow's ControlType is ControlType.Window.

When I call

 

_mainWindow.Get(SearchCriteria.ByControlType(ControlType.Window).AndAutomationId("id"))

 

I got "Could not find TestControl for ControlType=window and FrameworkId:WPF".

I found ControlType.Window is not added to ControlDictionary. So in ControlDictionary I added

 

items.Add(ControlDictionaryItem.WPFPrimary(typeof(UIItem), ControlType.Window));

At least for now I can change focus between those windows. Why is ControlType.Window is not in ControlDictionary? Is my fix correct?

Thanks. Kai

 

Coordinator
Nov 16, 2009 at 6:44 PM

Window should be retrieved using different mechanisms listed here:

http://white.codeplex.com/wikipage?title=Working%20with%20window