I’m observing something interesting (and really puzzling). If in the autopilot test I replace this code:
self.pointing_device.click_object(action_button)
by
self.pointing_device.move( action_button.globalRect.x + action_button.width * 0.5, action_button.globalRect.y + action_button.height * 0.5) self.pointing_device.click()
The bug still happens. But if I now replace 0.5 in the calculations above by 0.49999, the test passes.
There is something fishy going on with mouse coordinates.
I’m observing something interesting (and really puzzling). If in the autopilot test I replace this code:
self. pointing_ device. click_object( action_ button)
by
self. pointing_ device. move(
action_ button. globalRect. x + action_button.width * 0.5,
action_ button. globalRect. y + action_ button. height * 0.5) pointing_ device. click()
self.
The bug still happens.
But if I now replace 0.5 in the calculations above by 0.49999, the test passes.
There is something fishy going on with mouse coordinates.