wait for refresh before click

This commit is contained in:
Will McGugan
2025-09-28 15:10:23 +01:00
parent 1736cd1c09
commit 26610ef5f8

View File

@@ -230,6 +230,7 @@ class Pilot(Generic[ReturnType]):
True if no selector was specified or if the click landed on the selected
widget, False otherwise.
"""
await self.app.wait_for_refresh()
try:
return await self._post_mouse_events(
[MouseDown, MouseUp, Click],