@@ -39,10 +39,10 @@ default <T extends IElement> T getCustomElement(IElementSupplier<T> elementSuppl
39
39
/**
40
40
* Create custom element according to passed parameters.
41
41
*
42
- * @param clazz Class or interface of the element to be obtained.
43
- * @param locator Locator of the target element.
44
- * @param name Name of the target element.
45
- * @param <T> Type of the target element.
42
+ * @param clazz Class or interface of the element to be obtained.
43
+ * @param locator Locator of the target element.
44
+ * @param name Name of the target element.
45
+ * @param <T> Type of the target element.
46
46
* @return Instance of custom element.
47
47
*/
48
48
default <T extends IElement > T getCustomElement (Class <T > clazz , By locator , String name ) {
@@ -52,11 +52,11 @@ default <T extends IElement> T getCustomElement(Class<T> clazz, By locator, Stri
52
52
/**
53
53
* Create custom element according to passed parameters.
54
54
*
55
- * @param clazz Class or interface of the element to be obtained.
56
- * @param locator Locator of the target element.
57
- * @param name Name of the target element.
58
- * @param state Visibility state of the target element.
59
- * @param <T> Type of the target element.
55
+ * @param clazz Class or interface of the element to be obtained.
56
+ * @param locator Locator of the target element.
57
+ * @param name Name of the target element.
58
+ * @param state Visibility state of the target element.
59
+ * @param <T> Type of the target element.
60
60
* @return Instance of custom element.
61
61
*/
62
62
<T extends IElement > T getCustomElement (Class <T > clazz , By locator , String name , ElementState state );
@@ -69,6 +69,7 @@ default <T extends IElement> T getCustomElement(Class<T> clazz, By locator, Stri
69
69
* @param name Child element name.
70
70
* @param parentElement Parent element for relative search of child element.
71
71
* @param state Visibility state of target element.
72
+ * @param <T> Type of the target element.
72
73
* @return Child element.
73
74
*/
74
75
<T extends IElement > T findChildElement (IElement parentElement , By childLoc , String name ,
@@ -81,10 +82,11 @@ <T extends IElement> T findChildElement(IElement parentElement, By childLoc, Str
81
82
* @param clazz Class or interface of the element to be obtained.
82
83
* @param name Child element name.
83
84
* @param parentElement Parent element for relative search of child element.
85
+ * @param <T> Type of the target element.
84
86
* @return Child element.
85
87
*/
86
88
default <T extends IElement > T findChildElement (IElement parentElement , By childLoc , String name ,
87
- Class <T > clazz ) {
89
+ Class <T > clazz ) {
88
90
return findChildElement (parentElement , childLoc , name , clazz , ElementState .EXISTS_IN_ANY_STATE );
89
91
}
90
92
@@ -95,6 +97,7 @@ default <T extends IElement> T findChildElement(IElement parentElement, By child
95
97
* @param clazz Class or interface of the element to be obtained.
96
98
* @param parentElement Parent element for relative search of child element.
97
99
* @param state Visibility state of child element.
100
+ * @param <T> Type of the target element.
98
101
* @return Child element.
99
102
*/
100
103
default <T extends IElement > T findChildElement (IElement parentElement , By childLoc ,
@@ -108,6 +111,7 @@ default <T extends IElement> T findChildElement(IElement parentElement, By child
108
111
* @param childLoc Locator of child element relative to its parent.
109
112
* @param clazz Class or interface of the element to be obtained.
110
113
* @param parentElement Parent element for relative search of child element.
114
+ * @param <T> Type of the target element.
111
115
* @return Child element.
112
116
*/
113
117
default <T extends IElement > T findChildElement (IElement parentElement , By childLoc ,
@@ -122,10 +126,11 @@ default <T extends IElement> T findChildElement(IElement parentElement, By child
122
126
* @param supplier Required element's supplier.
123
127
* @param name Child element name.
124
128
* @param parentElement Parent element for relative search of child element.
129
+ * @param <T> Type of the target element.
125
130
* @return Child element.
126
131
*/
127
132
default <T extends IElement > T findChildElement (IElement parentElement , By childLoc , String name ,
128
- IElementSupplier <T > supplier ) {
133
+ IElementSupplier <T > supplier ) {
129
134
return findChildElement (parentElement , childLoc , name , supplier , ElementState .EXISTS_IN_ANY_STATE );
130
135
}
131
136
@@ -137,6 +142,7 @@ default <T extends IElement> T findChildElement(IElement parentElement, By child
137
142
* @param name Child element name.
138
143
* @param parentElement Parent element for relative search of child element.
139
144
* @param state Visibility state of child element.
145
+ * @param <T> Type of the target element.
140
146
* @return Child element.
141
147
*/
142
148
<T extends IElement > T findChildElement (IElement parentElement , By childLoc , String name ,
@@ -149,10 +155,11 @@ <T extends IElement> T findChildElement(IElement parentElement, By childLoc, Str
149
155
* @param supplier Required element's supplier.
150
156
* @param parentElement Parent element for relative search of child element.
151
157
* @param state Visibility state of child element.
158
+ * @param <T> Type of the target element.
152
159
* @return Child element.
153
160
*/
154
161
default <T extends IElement > T findChildElement (IElement parentElement , By childLoc ,
155
- IElementSupplier <T > supplier , ElementState state ) {
162
+ IElementSupplier <T > supplier , ElementState state ) {
156
163
return findChildElement (parentElement , childLoc , null , supplier , state );
157
164
}
158
165
@@ -162,21 +169,23 @@ default <T extends IElement> T findChildElement(IElement parentElement, By child
162
169
* @param childLoc Locator of child element relative to its parent.
163
170
* @param supplier Required element's supplier.
164
171
* @param parentElement Parent element for relative search of child element.
172
+ * @param <T> Type of the target element.
165
173
* @return Child element.
166
174
*/
167
175
default <T extends IElement > T findChildElement (IElement parentElement , By childLoc ,
168
- IElementSupplier <T > supplier ) {
176
+ IElementSupplier <T > supplier ) {
169
177
return findChildElement (parentElement , childLoc , supplier , ElementState .EXISTS_IN_ANY_STATE );
170
178
}
171
179
172
180
/**
173
181
* Find list of elements.
174
182
*
175
183
* @param locator Elements selector.
176
- * @param name Child element name.
184
+ * @param name Child element name.
177
185
* @param supplier Required elements' supplier.
178
186
* @param count Expected number of elements that have to be found (zero, more then zero, any).
179
187
* @param state Visibility state of target elements.
188
+ * @param <T> Type of the target element.
180
189
* @return List of elements.
181
190
*/
182
191
<T extends IElement > List <T > findElements (By locator , String name , IElementSupplier <T > supplier , ElementsCount count ,
@@ -189,10 +198,11 @@ <T extends IElement> List<T> findElements(By locator, String name, IElementSuppl
189
198
* @param supplier Required elements' supplier.
190
199
* @param count Expected number of elements that have to be found (zero, more then zero, any).
191
200
* @param state Visibility state of target elements.
201
+ * @param <T> Type of the target element.
192
202
* @return List of elements.
193
203
*/
194
204
default <T extends IElement > List <T > findElements (By locator , IElementSupplier <T > supplier , ElementsCount count ,
195
- ElementState state ) {
205
+ ElementState state ) {
196
206
return findElements (locator , null , supplier , count , state );
197
207
}
198
208
@@ -203,6 +213,8 @@ default <T extends IElement> List<T> findElements(By locator, IElementSupplier<T
203
213
* @param name Child element name.
204
214
* @param clazz Class or interface of the element to be obtained.
205
215
* @param count Expected number of elements that have to be found (zero, more then zero, any).
216
+ * @param state Visibility state of target elements.
217
+ * @param <T> Type of the target element.
206
218
* @return List of elements.
207
219
*/
208
220
<T extends IElement > List <T > findElements (By locator , String name , Class <T > clazz , ElementsCount count , ElementState state );
@@ -213,6 +225,8 @@ default <T extends IElement> List<T> findElements(By locator, IElementSupplier<T
213
225
* @param locator Elements selector.
214
226
* @param clazz Class or interface of the element to be obtained.
215
227
* @param count Expected number of elements that have to be found (zero, more then zero, any).
228
+ * @param state Visibility state of target elements.
229
+ * @param <T> Type of the target element.
216
230
* @return List of elements.
217
231
*/
218
232
default <T extends IElement > List <T > findElements (By locator , Class <T > clazz , ElementsCount count , ElementState state ) {
@@ -224,6 +238,7 @@ default <T extends IElement> List<T> findElements(By locator, Class<T> clazz, El
224
238
*
225
239
* @param locator Elements selector.
226
240
* @param clazz Class or interface of elements to be obtained.
241
+ * @param <T> Type of the target element.
227
242
* @return List of elements.
228
243
*/
229
244
default <T extends IElement > List <T > findElements (By locator , Class <T > clazz ) {
@@ -237,6 +252,7 @@ default <T extends IElement> List<T> findElements(By locator, Class<T> clazz) {
237
252
* @param clazz Class or interface of elements to be obtained.
238
253
* @param name Child element name.
239
254
* @param count Expected number of elements that have to be found (zero, more then zero, any).
255
+ * @param <T> Type of the target element.
240
256
* @return List of elements.
241
257
*/
242
258
default <T extends IElement > List <T > findElements (By locator , String name , Class <T > clazz , ElementsCount count ) {
@@ -249,6 +265,7 @@ default <T extends IElement> List<T> findElements(By locator, String name, Class
249
265
* @param locator Elements selector.
250
266
* @param name Child element name.
251
267
* @param clazz Class or interface of elements to be obtained.
268
+ * @param <T> Type of the target element.
252
269
* @return List of elements.
253
270
*/
254
271
default <T extends IElement > List <T > findElements (By locator , String name , Class <T > clazz ) {
@@ -261,6 +278,7 @@ default <T extends IElement> List<T> findElements(By locator, String name, Class
261
278
* @param locator Elements selector.
262
279
* @param clazz Class or interface of elements to be obtained.
263
280
* @param count Expected number of elements that have to be found (zero, more then zero, any).
281
+ * @param <T> Type of the target element.
264
282
* @return List of elements.
265
283
*/
266
284
default <T extends IElement > List <T > findElements (By locator , Class <T > clazz , ElementsCount count ) {
0 commit comments