-
Notifications
You must be signed in to change notification settings - Fork 132
/
Copy pathclickActions.xsd
122 lines (112 loc) · 4.94 KB
/
clickActions.xsd
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
<?xml version="1.0" encoding="UTF-8"?>
<!--
/**
* Copyright © Magento, Inc. All rights reserved.
* See COPYING.txt for license details.
*/
-->
<xs:schema elementFormDefault="qualified" xmlns:xs="http://www.w3.org/2001/XMLSchema">
<xs:include schemaLocation="commonAttributes.xsd"/>
<xs:group name="clickTags">
<xs:choice>
<xs:element type="clickType" name="click" minOccurs="0" maxOccurs="unbounded"/>
<xs:element type="clickWithLeftButtonType" name="clickWithLeftButton" minOccurs="0" maxOccurs="unbounded"/>
<xs:element type="clickWithRightButtonType" name="clickWithRightButton" minOccurs="0" maxOccurs="unbounded"/>
<xs:element type="doubleClickType" name="doubleClick" minOccurs="0" maxOccurs="unbounded"/>
<xs:element type="conditionalClickType" name="conditionalClick" minOccurs="0" maxOccurs="unbounded"/>
</xs:choice>
</xs:group>
<!-- Attributes -->
<xs:attribute type="xs:string" name="x">
<xs:annotation>
<xs:documentation>
X coordinate for click action.
</xs:documentation>
</xs:annotation>
</xs:attribute>
<xs:attribute type="xs:string" name="y">
<xs:annotation>
<xs:documentation>
Y coordinate for click action.
</xs:documentation>
</xs:annotation>
</xs:attribute>
<!-- Complex Types -->
<xs:complexType name="clickType">
<xs:annotation>
<xs:documentation>Clicks an element according to given selector or selectorArray.</xs:documentation>
</xs:annotation>
<xs:simpleContent>
<xs:extension base="xs:string">
<xs:attribute ref="selector"/>
<xs:attribute ref="selectorArray"/>
<xs:attribute ref="userInput"/>
<xs:attributeGroup ref="commonActionAttributes"/>
</xs:extension>
</xs:simpleContent>
</xs:complexType>
<xs:complexType name="clickWithLeftButtonType">
<xs:annotation>
<xs:documentation>Performs a Left Click on an element according to given selector or selectorArray, or on given x/y coordinate.</xs:documentation>
</xs:annotation>
<xs:simpleContent>
<xs:extension base="xs:string">
<xs:attribute ref="selector"/>
<xs:attribute ref="selectorArray"/>
<xs:attribute ref="x"/>
<xs:attribute ref="y"/>
<xs:attributeGroup ref="commonActionAttributes"/>
</xs:extension>
</xs:simpleContent>
</xs:complexType>
<xs:complexType name="clickWithRightButtonType">
<xs:annotation>
<xs:documentation>Performs a Right Click on an element according to given selector or selectorArray, or on given x/y coordinate.</xs:documentation>
</xs:annotation>
<xs:simpleContent>
<xs:extension base="xs:string">
<xs:attribute ref="selector"/>
<xs:attribute ref="selectorArray"/>
<xs:attribute ref="x"/>
<xs:attribute ref="y"/>
<xs:attributeGroup ref="commonActionAttributes"/>
</xs:extension>
</xs:simpleContent>
</xs:complexType>
<xs:complexType name="conditionalClickType">
<xs:annotation>
<xs:documentation>Performs a Click on an element according to given selector, only if dependentSelector visibility value matches given.</xs:documentation>
</xs:annotation>
<xs:simpleContent>
<xs:extension base="xs:string">
<xs:attribute ref="selector" use="required"/>
<xs:attribute type="xs:string" name="dependentSelector" use="required">
<xs:annotation>
<xs:documentation>
Element that is the subject of the conditional check.
</xs:documentation>
</xs:annotation>
</xs:attribute>
<xs:attribute type="xs:boolean" name="visible" use="required">
<xs:annotation>
<xs:documentation>
Visibility modifier to the subject of the conditional check.
</xs:documentation>
</xs:annotation>
</xs:attribute>
<xs:attributeGroup ref="commonActionAttributes"/>
</xs:extension>
</xs:simpleContent>
</xs:complexType>
<xs:complexType name="doubleClickType">
<xs:annotation>
<xs:documentation>Clicks an element according to given selector.</xs:documentation>
</xs:annotation>
<xs:simpleContent>
<xs:extension base="xs:string">
<xs:attribute ref="selector" use="required"/>
<xs:attributeGroup ref="commonActionAttributes"/>
</xs:extension>
</xs:simpleContent>
</xs:complexType>
</xs:schema>