How to send ENTER from keyboard using TestStack.White Framework
Asked Answered
L

1

9

I am writing a c# code to test UI in my application. I want to send ENTER from Keyboard. I already checked TestStack.White.WindowsAPI.KeyboardInput.SpecialKeys. It doesnt contain any method send ENTER.

Thanks.

Longlimbed answered 14/6, 2016 at 2:12 Comment(1)
KeyboardUI has Enter which is Input and PressSpecialKey RETURN which is ENTER. Somewhat misleading.Sideline
C
12

Any reason you can't use KeyboardInput.SpecialKeys.RETURN ? It should do the same thing and get you what you need.

Corvus answered 14/6, 2016 at 16:37 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.