Forum Discussion

YMinaev's avatar
YMinaev
Staff
7 years ago

[TechCorner] SetText, Keys, keyboard input, and other disasters

Hi Everyone,

 

We often get reports from you that keyboard input in applications behaves, let's say, a bit weird. Have you ever seen your test enter login and password on your web page, and then click that Login button just to make the app report a login error? Of course, your login and password are perfectly fine, and every time you enter them manually, they work.

 

Why do things like this happen? The short answer is: events.

So, what's the solution? The short answer is: the Keys method.

 

If you're looking for a longer version, check this KB article:

Why doesn't keyboard input made by a test work in the same way as manual input

 

I tried to describe things related to keyboard input from tests in plain English there.

 

I hope this helps.

 

Yuri

1 Reply

  • tristaanogre's avatar
    tristaanogre
    Esteemed Contributor

    Excellent article!  There are a lot of queries here on the community that stem from that very issue. Hopefully, this will help more users down the road.