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

Allow for application independent mouse movement, clicks and keyboard input #199

Open
HackXIt opened this issue Aug 19, 2024 · 3 comments
Open

Comments

@HackXIt
Copy link
Contributor

HackXIt commented Aug 19, 2024

FlaUI supports moving the mouse and just sending mouse inputs, without necessity of locators.

While this may be a rare use-case when testing applications, it would still be nice to have additional keywords, which would allow for the usage of the mouse via coordinates.
The same goes for keyboard inputs.

It does make testing more cumbersome and "flaky" when sending inputs without identifiers, however, I believe, that sometimes a user of this library might just want to use it as an automation method, rather than a testing method.
Having keywords to support that, would make this library a little more generic and also allow for user-input simulation without necessity of attaching an application.

@HackXIt
Copy link
Contributor Author

HackXIt commented Aug 19, 2024

I might do a PR of this on my own, but I'm currently swamped...

@HackXIt
Copy link
Contributor Author

HackXIt commented Aug 19, 2024

As another thought:

Maybe giving access to the FlaUI library directly would make it unnecessary to add additional keywords for this.
Then a user would have to find out the necessary FlaUI methods themselves, if they want to use certain features which are not covered by the keywords.

Maybe could be done by providing an instance of certain classes to the user and via usage of Evaluate or something similar.
Not sure yet.

@HackXIt HackXIt changed the title Allow for application independent mouse movement and clicks Allow for application independent mouse movement, clicks and input Aug 22, 2024
@HackXIt HackXIt changed the title Allow for application independent mouse movement, clicks and input Allow for application independent mouse movement, clicks and keyboard input Aug 22, 2024
@noubar
Copy link
Contributor

noubar commented Sep 13, 2024

You could Simply implement a new Keyword:
Click By Cordinate <x> <y>
For keyboard you don't need to implement it, because it is already implemented

If you dont give to "Press Key" keyword any indicator it will make a global key press.
Example:

Press Key  s'ENTER'  <XPATH>   //Specific
Press Key  s'ENTER'  //Global

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

No branches or pull requests

2 participants