systelab-components-wdio-test
Version:
Widgets to be use in the E2E Tests based in WDIO
45 lines (44 loc) • 1.67 kB
JSON
{
"$schema": "http://json-schema.org/draft-07/schema#",
"$id": "http://www.werfen.com/upload-file-element-request-schema.json",
"title": "Schema for a request to upload a file to 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
},
"name": {
"type": "string",
"description": "Name of the file to upload"
},
"content": {
"type": "string",
"description": "Content of the file to upload"
}
},
"required": ["locators", "name", "content"],
"additionalProperties": false
}