YMinaev
7 years agoStaff
[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