Skip to content

[BUG] Same UI element can not be clicked twice with Mouse Click keyword #81

Description

@horvathadamd

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:

  1. Go to any Avalonia UI element.
  2. Click on it with Mouse Click ${xpath} or Mouse Click x=${x} y=${y}
  3. Click on it with Mouse Click ${xpath} or Mouse Click x=${x} y=${y}
  4. 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  1s

Expected 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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions