WPF button can not be clicked

Feb 12, 2010 at 4:32 AM

HI all,

I am using White Lib 0.19 to do UI automation tests on WPF application.

I CAN fetch the button but no matter how I try, the button cannot be clicked.

I tried use

1. Click();

2. Focus(); then Click();

3. DoubleClick();

4. mouse.Click(button.location);

all failed.

Any idea?

Thank a lot!

Feb 12, 2010 at 7:19 AM

Hi

 

do you use Win 7 64bit?

 

than there is an issue

 

see also here:

http://white.codeplex.com/Thread/View.aspx?ThreadId=82893

Feb 15, 2010 at 11:29 PM

Hi Throndorin,

Indeed, I am using Win2k8 64bit.

 

Cheers,

Leo

Feb 15, 2010 at 11:32 PM

I managed to click that button using Keyboard to enter RETURN:

 

White.Core.InputDevices.AttachedKeyboard kbd = mainWin.Keyboard;
kbd.PressSpecialKey(White.Core.WindowsAPI.KeyboardInput.SpecialKeys.TAB);
kbd.PressSpecialKey(White.Core.WindowsAPI.KeyboardInput.SpecialKeys.RETURN);