Project

General

Profile

Actions

action #61064

closed

testapi.pm should sleep before clicking

Added by apachelogger almost 5 years ago. Updated almost 5 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

Also available in: Atom PDF