WaitText¶
- class WaitText(text: str, min_similarity: float = 0.9, text_getter: GetText | None = None, interval: float | int = 1, expire_time: float | None = 600)[source]¶
Bases:
OCRInstructionWait until the target text appears.
- property id: int¶
Return the unique OCR instruction identifier.
- Returns:
OCR instruction identifier.
- Return type:
int
- perform(ui: BaseUi, text_reader: BaseTextReader, *args, **kwargs)[source]¶
Execute the instruction with a text reader.
- Parameters:
ui (BaseUi) – UI instance used during execution.
text_reader (BaseTextReader) – Text reader used to detect text.
args – Additional positional arguments for the execution flow.
kwargs – Additional keyword arguments for the execution flow.
- Returns:
Updated UI state when the implementation returns it.
- Return type:
- property text: str¶