开发者

how to simulate keyboard 'backspace' event in codeUI automation test with C#

I have tried with Keybo开发者_StackOverfloward.Sendkeys(“{BACKSPACE}”); but it didn’t work.


http://msdn.microsoft.com/en-us/library/fx2k26ca(VS.90).aspx

// this sends the backspace command
My.Computer.Keyboard.SendKeys({BACKSPACE}, True);

You are probably sending {BACKSPACE} as a string.


Please try this

It works in my Visual studio 2012

Keyboard.SendKeys(uIItemEdit, "{back}", ModifierKeys.None);
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜