Unable to get CustomCommands to work

May 5, 2012 at 10:23 AM
Edited May 5, 2012 at 10:26 AM

I have been trying to get the CustomCommands sample to work.. with the WhiteButton.

Copy pasted all the posted code on the doc page into a AUT (x86 WPF exe) and a NUnit test project.(using the 32 bit runner on Win7 64 bit)

AUT

  • References White.CustomControls.Peers, UIAutomationProvider
  • Contains MainWindow, WhiteButton and WhiteButtonPeer

Test DLL

  • References White.Core, White.CustomControls, AUT exe, UIAutomationClient
  • Contains test, IButtonCommands, ButtonCommands

I'm able to get the IButtonCommands Proxy object

 

var proxy = new CustomCommandFactory().Create[IButtonCommands](button);

 

However the interface members return null.

On the visual aspect, I see the button getting focus. No exceptions. The white log file shows this line multiple times apart from the usual config setting messages

 

2012-05-05 10:33:54,140 DEBUG - Vertical scrollbar is not scrollable for parent of Button. AutomationId:MyButton, Name:Aqua, ControlType:button, FrameworkId:WPF

What am I missing ?

May 14, 2012 at 7:46 AM

BUMP! Any ideas on what I could do to proceed ?

Should I post my sample project ? Would building from source help ?