-
Notifications
You must be signed in to change notification settings - Fork 3
Description
Describe the bug
I work on an Avalonia app test in linux. I have a keyword that locates an element and successfully presses it, but if I run the same keyword again (to manipulate a toggle), the keyword waits for a while and doesn't do anything. It moves the mouse to the desired location but it doesn't press the mouse button.
If I don't use my keyword, but read the toggle coordinates and call the Mouse Click with the coordinates (Mouse Click x=482.0 y=422.0), the behavior is the same. The toggle is only pressed once, the second time only Mouse Move To is run successfully.
If I press another UI element between the two toggles, the behavior is as expected.
Steps To Reproduce
Steps to reproduce the behavior:
- Go to any Avalonia UI element.
- Click on it with Mouse Click ${xpath} or Mouse Click x=${x} y=${y}
- Click on it with Mouse Click ${xpath} or Mouse Click x=${x} y=${y}
- See error
If possible add some example source code like:
***Settings***
Library PlatynUI
***Test Cases***
Testtesttest
[Setup] Setup Environment
Mouse Click x=482.0 y=422.0
Sleep 1s
Mouse Click x=482.0 y=422.0
Sleep 1sExpected behavior
On the coordinates above, there's a toggle. I want it turned on and off again.
Screenshots/ Videos
If applicable, add screenshots or videos to help explain your problem.
Logs
When run in VScode, I see the following in the Debug Console:
Mouse Click x=482.0 y=422.0
Point(x=482.0, y=422.0)
Mouse Click x=482.0 y=422.0
None
Additional context
Add any other context about the problem here.
Desktop (please complete the following information):
- PlatynUI Version 0.9.1
- RobotFramework Version 7.3.2
- OS: Linux
- Python Version 3.11.2
- Additional tools: robocop, robotcode