You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Enter also currently has the alias Press, and the docstring indicates that i did mean to allow Enter/Press to be called without any Target, but it looks like while we were adding defensive code blocks we made that impossible.
Maybe the solution to this is to remove the part where we raise an exception in the "if self.target is None" block in perform_as and instead handle just pressing the key?
There needs to be a way for users to press keys without specifying a target. Examples: pressing ESC, arrow keys, application hotkey intercept, etc.
I created a
Press
action in my suite which does the job. This is not the same thing as usingEnter
since there is no target to direct thesend_keys
.Before I consider creating a PR to add this into the library, it has one flaw that I feel needs addressing which is logging of keys.
Marcel tries to Press(('\ue00c',))
This really ought to read as
Marcel tries to Press(<ESCAPE>)
or something of the like.The text was updated successfully, but these errors were encountered: