Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions examples/canonical.json
Original file line number Diff line number Diff line change
Expand Up @@ -873,6 +873,14 @@
"condition": "checked",
"timeout_ms": 5000
}
},
{
"title": "Wait for a tab to be selected",
"cli": "mobium wait label=Cart --for selected",
"args": {
"target": "label=Cart",
"condition": "selected"
}
}
],
"app_zoom": [
Expand Down
3 changes: 3 additions & 0 deletions examples/dotnet.json
Original file line number Diff line number Diff line change
Expand Up @@ -436,6 +436,9 @@
},
{
"code": "device.WaitFor(\"testid=termsCheck\", Until.Checked().Timeout(TimeSpan.FromSeconds(5)));"
},
{
"code": "device.WaitFor(\"label=Cart\", Until.Selected());"
}
],
"app_zoom": [
Expand Down
3 changes: 3 additions & 0 deletions examples/go.json
Original file line number Diff line number Diff line change
Expand Up @@ -436,6 +436,9 @@
},
{
"code": "opts := &mobium.WaitOptions{Condition: mobium.Checked, Timeout: 5 * time.Second}\nif _, err := dev.WaitFor(ctx, \"testid=termsCheck\", opts); err != nil {\n\treturn err\n}"
},
{
"code": "if _, err := dev.WaitFor(ctx, \"label=Cart\", &mobium.WaitOptions{Condition: mobium.Selected}); err != nil {\n\treturn err\n}"
}
],
"app_zoom": [
Expand Down
3 changes: 3 additions & 0 deletions examples/java.json
Original file line number Diff line number Diff line change
Expand Up @@ -436,6 +436,9 @@
},
{
"code": "device.waitFor(\"testid=termsCheck\", WaitFor.checked().timeout(Duration.ofSeconds(5)));"
},
{
"code": "device.waitFor(\"label=Cart\", WaitFor.selected());"
}
],
"app_zoom": [
Expand Down
3 changes: 3 additions & 0 deletions examples/javascript.json
Original file line number Diff line number Diff line change
Expand Up @@ -436,6 +436,9 @@
},
{
"code": "await device.waitFor('testid=termsCheck', { condition: 'checked', timeoutMs: 5000 })"
},
{
"code": "await device.waitFor('label=Cart', { condition: 'selected' })"
}
],
"app_zoom": [
Expand Down
3 changes: 3 additions & 0 deletions examples/python.json
Original file line number Diff line number Diff line change
Expand Up @@ -436,6 +436,9 @@
},
{
"code": "device.wait_for(\"testid=termsCheck\", condition=\"checked\", timeout_ms=5000)"
},
{
"code": "device.wait_for(\"label=Cart\", condition=\"selected\")"
}
],
"app_zoom": [
Expand Down
Loading