Simulate key-presses. Args: *keys: Keys to press.
(self, *keys: str)
| 74 | return self._app |
| 75 | |
| 76 | async def press(self, *keys: str) -> None: |
| 77 | """Simulate key-presses. |
| 78 | |
| 79 | Args: |
| 80 | *keys: Keys to press. |
| 81 | """ |
| 82 | if keys: |
| 83 | await self._app._press_keys(keys) |
| 84 | await self._wait_for_screen() |
| 85 | |
| 86 | async def resize_terminal(self, width: int, height: int) -> None: |
| 87 | """Resize the terminal to the given dimensions. |