{
"$schema": "http://json-schema.org/draft-07/schema#",
"$id": "https://github.com/danilo-aguiar-br/browser-automation-cli/docs/schemas/wait.schema.json",
"title": "wait command input",
"type": "object",
"description": "Wait ms and/or text and/or CSS selector (comma OR / array) and/or URL and/or load state (GAP-019/024)",
"properties": {
"include_snapshot": {
"type": "boolean"
},
"ms": {
"minimum": 0,
"type": "integer"
},
"navigation": {
"description": "Wait for load lifecycle (GAP-024)",
"type": "boolean"
},
"selector": {
"oneOf": [
{
"description": "CSS selector; comma-separated OR supported (GAP-019)",
"type": "string"
},
{
"items": {
"type": "string"
},
"type": "array"
}
]
},
"selectors": {
"description": "OR list of CSS selectors",
"items": {
"type": "string"
},
"type": "array"
},
"state": {
"enum": [
"load",
"domcontentloaded",
"networkidle",
"none"
],
"type": "string"
},
"text": {
"description": "Repeatable --text values; any match wins (OR)",
"oneOf": [
{
"type": "string"
},
{
"items": {
"type": "string"
},
"type": "array"
}
]
},
"url": {
"description": "Exact location.href match (GAP-024)",
"type": "string"
},
"url_contains": {
"description": "Substring match on location.href (GAP-024)",
"type": "string"
},
"wait_timeout_ms": {
"minimum": 0,
"type": "integer"
}
},
"required": [],
"additionalProperties": false
}