mirror of
https://github.com/Textualize/textual.git
synced 2025-10-17 02:38:12 +03:00
wait for refresh before click
This commit is contained in:
@@ -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],
|
||||
|
||||
Reference in New Issue
Block a user