mirror of
https://github.com/httprunner/httprunner.git
synced 2026-08-28 11:36:56 +08:00
feat: validate with ocr text
This commit is contained in:
@@ -10,9 +10,11 @@ func TestIOSSettingsAction(t *testing.T) {
|
||||
Config: NewConfig("ios ui action on Settings"),
|
||||
TestSteps: []IStep{
|
||||
NewStep("launch Settings").
|
||||
IOS().Home().Tap("//*[@label='设置']").
|
||||
IOS().Home().Tap("设置").
|
||||
Validate().
|
||||
AssertNameExists("飞行模式").
|
||||
AssertLabelExists("飞行模式").
|
||||
AssertOCRExists("飞行模式").
|
||||
AssertLabelNotExists("飞行模式2"),
|
||||
NewStep("swipe up and down").
|
||||
IOS().SwipeUp().SwipeUp().SwipeDown(),
|
||||
|
||||
Reference in New Issue
Block a user