robotframework-flaui icon indicating copy to clipboard operation
robotframework-flaui copied to clipboard

Allow for application independent mouse movement, clicks and keyboard input

Open HackXIt opened this issue 1 year ago • 3 comments

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 avatar Aug 19 '24 09:08 HackXIt

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

HackXIt avatar Aug 19 '24 09:08 HackXIt

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 avatar Aug 19 '24 09:08 HackXIt

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

noubar avatar Sep 13 '24 10:09 noubar