systelab-components-wdio-test
Version:
Widgets to be use in the E2E Tests based in WDIO
47 lines (46 loc) • 1.67 kB
JSON
{
"$schema": "http://json-schema.org/draft-07/schema#",
"$id": "http://www.werfen.com/long-press-request-schema.json",
"title": "Schema for a request to perform a long press action on an element",
"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
},
"duration": {
"type": "number",
"description": "Duration of the long press action in milliseconds"
}
},
"required": ["locators"],
"additionalProperties": false
}