Project

General

Profile

Actions

action #61064

closed

testapi.pm should sleep before clicking

Added by apachelogger over 4 years ago. Updated over 4 years ago.

Status:
Resolved
Priority:
Normal
Assignee:
Category:
Support
Target version:
Start date:
2019-12-15
Due date:
% Done:

0%

Estimated time:

Description

In KDE Plasma from git master (going to be 5.18) is having trouble with receiving click events on desktop icons. We've tracked this down to the fact that there is no delay between the testapi moving the mouse to the click coordinates and the actual click getting performed. This can lead to no item being considered selected/hovered and nothing happening.
I've talked to one of the Plasma devs and we kinda concluded that this is a defect with testapi as this isn't really reflective how a user would interact with the UI.

Thankfully this is indeed easy to resolve by simply adding a sleep() after mouse_set() in click_lastmatch()

Actions #1

Updated by okurz over 4 years ago

  • Category set to Support
  • Status changed from New to Feedback
  • Assignee set to okurz

The API already has separate functions like "mouse_set", "mouse_click" and also "click_lastmatch" next to the more standard "assert_and_click" so I think all that is necessary is already there. One can e.g. move the mouse, sleep the required time and then click on the current coordinates when this is required. What else would be needed?

Actions #2

Updated by okurz over 4 years ago

  • Status changed from Feedback to Resolved
  • Target version set to Done
Actions

Also available in: Atom PDF