ocrWaitForTextDisplayed
画面上に特定のテキストが表示されるのを待ちます。
使用法
await browser.ocrWaitForTextDisplayed({
text: "specFileRetries",
});
出力
ログ
[0-0] 2024-05-26T04:32:52.005Z INFO webdriver: COMMAND ocrWaitForTextDisplayed(<object>)
......................
# ocrWaitForTextDisplayedは内部的にocrGetElementPositionByTextを使用しているため、ログにocrGetElementPositionByTextコマンドが表示されます
[0-0] 2024-05-26T04:32:52.735Z INFO @wdio/ocr-service:ocrGetElementPositionByText: Multiple matches were found based on the word "specFileRetries". The match "specFileRetries" with score "100%" will be used.
オプション
text
- 型:
string
- 必須: はい
クリックするために検索したいテキスト。
例
await browser.ocrWaitForTextDisplayed({ text: "specFileRetries" });