feat: support ignoreNotFoundError, ignore error if target element not found

This commit is contained in:
debugtalk
2022-08-31 16:38:53 +08:00
parent f2627fab9b
commit 7f713c5be9
5 changed files with 66 additions and 24 deletions
+1 -1
View File
@@ -85,7 +85,7 @@ func TestIOSWeixinLive(t *testing.T) {
NewStep("进入直播页").
IOS().
Tap("发现").Sleep(5). // 进入「发现页」;等待 5 秒确保加载完成
TapXY(0.5, 0.3). // 基于坐标位置点击「直播」;TODO通过 OCR 识别「直播」
TapByOCR("直播"). // 通过 OCR 识别「直播」
Validate().
AssertLabelExists("直播"),
NewStep("向上滑动 5 次").