Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add delay after pressing keyboard modifiers #623

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

louislefevre
Copy link

There's an issue we're seeing with triggering tooltips within text boxes: we're trying to enter invalid characters into a text box, and then verify that an error tooltip appears. Usually the tooltip will remain on screen for awhile after entering the character, but using FlaUI we found that it will instead appear very briefly before disappearing again.

Here is a GIF of this happening, where we're entering a series of invalid characters into a text box using FlaUI. As you can see, the tooltip disappears very quickly. This is causing problems as we're trying to capture the tooltip and its contents, but this is difficult since there's only a brief window to do so.
BugExample

After some testing, I found that this happens when typing a character that requires modifiers to be pressed, and that the lack of delay between pressing the modifiers and typing the character is causing the tooltip to disappear prematurely. The change that I've added resolves this, and waits for a moment after pressing the necessary modifiers (if there are any). As a result, the tooltip now appears and remains on-screen as expected:
FixExample

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant