UNPKG

systelab-components-wdio-test

Version:
54 lines (53 loc) 1.94 kB
{ "$schema": "http://json-schema.org/draft-07/schema#", "$id": "http://www.werfen.com/scroll-element-request-schema.json", "title": "Schema for a request to scroll into an Element of the application managed by WDIO REST API", "type": "object", "properties": { "locators": { "type": "array", "description": "List of locators of element to be found", "items": { "type": "object", "properties": { "type": { "type": "string", "enum": ["ElementSelector", "ArraySelector", "ArrayItem"], "description": "Type of selector" }, "selector": { "type": "string", "description": "Selector of element to be found. Only for ElementSelector and ArraySelector types." }, "index": { "type": "integer", "description": "Index of element to be found. Only for ArrayItem type.", "minimum": 0 } }, "required": ["type"], "additionalProperties": false }, "minItems": 1 }, "options": { "type": "object", "properties": { "behavior": { "type": "string", "enum": ["auto", "smooth"] }, "block": { "type": "string", "enum": ["start", "center", "end", "nearest"] }, "inline": { "type": "string", "enum": ["start", "center", "end", "nearest"] } } } }, "required": ["locators"], "additionalProperties": false }