@@ -39,10 +39,10 @@ default <T extends IElement> T getCustomElement(IElementSupplier<T> elementSuppl
3939 /**
4040 * Create custom element according to passed parameters.
4141 *
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.
4646 * @return Instance of custom element.
4747 */
4848 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
5252 /**
5353 * Create custom element according to passed parameters.
5454 *
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.
6060 * @return Instance of custom element.
6161 */
6262 <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
6969 * @param name Child element name.
7070 * @param parentElement Parent element for relative search of child element.
7171 * @param state Visibility state of target element.
72+ * @param <T> Type of the target element.
7273 * @return Child element.
7374 */
7475 <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
8182 * @param clazz Class or interface of the element to be obtained.
8283 * @param name Child element name.
8384 * @param parentElement Parent element for relative search of child element.
85+ * @param <T> Type of the target element.
8486 * @return Child element.
8587 */
8688 default <T extends IElement > T findChildElement (IElement parentElement , By childLoc , String name ,
87- Class <T > clazz ) {
89+ Class <T > clazz ) {
8890 return findChildElement (parentElement , childLoc , name , clazz , ElementState .EXISTS_IN_ANY_STATE );
8991 }
9092
@@ -95,6 +97,7 @@ default <T extends IElement> T findChildElement(IElement parentElement, By child
9597 * @param clazz Class or interface of the element to be obtained.
9698 * @param parentElement Parent element for relative search of child element.
9799 * @param state Visibility state of child element.
100+ * @param <T> Type of the target element.
98101 * @return Child element.
99102 */
100103 default <T extends IElement > T findChildElement (IElement parentElement , By childLoc ,
@@ -108,6 +111,7 @@ default <T extends IElement> T findChildElement(IElement parentElement, By child
108111 * @param childLoc Locator of child element relative to its parent.
109112 * @param clazz Class or interface of the element to be obtained.
110113 * @param parentElement Parent element for relative search of child element.
114+ * @param <T> Type of the target element.
111115 * @return Child element.
112116 */
113117 default <T extends IElement > T findChildElement (IElement parentElement , By childLoc ,
@@ -122,10 +126,11 @@ default <T extends IElement> T findChildElement(IElement parentElement, By child
122126 * @param supplier Required element's supplier.
123127 * @param name Child element name.
124128 * @param parentElement Parent element for relative search of child element.
129+ * @param <T> Type of the target element.
125130 * @return Child element.
126131 */
127132 default <T extends IElement > T findChildElement (IElement parentElement , By childLoc , String name ,
128- IElementSupplier <T > supplier ) {
133+ IElementSupplier <T > supplier ) {
129134 return findChildElement (parentElement , childLoc , name , supplier , ElementState .EXISTS_IN_ANY_STATE );
130135 }
131136
@@ -137,6 +142,7 @@ default <T extends IElement> T findChildElement(IElement parentElement, By child
137142 * @param name Child element name.
138143 * @param parentElement Parent element for relative search of child element.
139144 * @param state Visibility state of child element.
145+ * @param <T> Type of the target element.
140146 * @return Child element.
141147 */
142148 <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
149155 * @param supplier Required element's supplier.
150156 * @param parentElement Parent element for relative search of child element.
151157 * @param state Visibility state of child element.
158+ * @param <T> Type of the target element.
152159 * @return Child element.
153160 */
154161 default <T extends IElement > T findChildElement (IElement parentElement , By childLoc ,
155- IElementSupplier <T > supplier , ElementState state ) {
162+ IElementSupplier <T > supplier , ElementState state ) {
156163 return findChildElement (parentElement , childLoc , null , supplier , state );
157164 }
158165
@@ -162,21 +169,23 @@ default <T extends IElement> T findChildElement(IElement parentElement, By child
162169 * @param childLoc Locator of child element relative to its parent.
163170 * @param supplier Required element's supplier.
164171 * @param parentElement Parent element for relative search of child element.
172+ * @param <T> Type of the target element.
165173 * @return Child element.
166174 */
167175 default <T extends IElement > T findChildElement (IElement parentElement , By childLoc ,
168- IElementSupplier <T > supplier ) {
176+ IElementSupplier <T > supplier ) {
169177 return findChildElement (parentElement , childLoc , supplier , ElementState .EXISTS_IN_ANY_STATE );
170178 }
171179
172180 /**
173181 * Find list of elements.
174182 *
175183 * @param locator Elements selector.
176- * @param name Child element name.
184+ * @param name Child element name.
177185 * @param supplier Required elements' supplier.
178186 * @param count Expected number of elements that have to be found (zero, more then zero, any).
179187 * @param state Visibility state of target elements.
188+ * @param <T> Type of the target element.
180189 * @return List of elements.
181190 */
182191 <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
189198 * @param supplier Required elements' supplier.
190199 * @param count Expected number of elements that have to be found (zero, more then zero, any).
191200 * @param state Visibility state of target elements.
201+ * @param <T> Type of the target element.
192202 * @return List of elements.
193203 */
194204 default <T extends IElement > List <T > findElements (By locator , IElementSupplier <T > supplier , ElementsCount count ,
195- ElementState state ) {
205+ ElementState state ) {
196206 return findElements (locator , null , supplier , count , state );
197207 }
198208
@@ -203,6 +213,8 @@ default <T extends IElement> List<T> findElements(By locator, IElementSupplier<T
203213 * @param name Child element name.
204214 * @param clazz Class or interface of the element to be obtained.
205215 * @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.
206218 * @return List of elements.
207219 */
208220 <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
213225 * @param locator Elements selector.
214226 * @param clazz Class or interface of the element to be obtained.
215227 * @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.
216230 * @return List of elements.
217231 */
218232 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
224238 *
225239 * @param locator Elements selector.
226240 * @param clazz Class or interface of elements to be obtained.
241+ * @param <T> Type of the target element.
227242 * @return List of elements.
228243 */
229244 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) {
237252 * @param clazz Class or interface of elements to be obtained.
238253 * @param name Child element name.
239254 * @param count Expected number of elements that have to be found (zero, more then zero, any).
255+ * @param <T> Type of the target element.
240256 * @return List of elements.
241257 */
242258 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
249265 * @param locator Elements selector.
250266 * @param name Child element name.
251267 * @param clazz Class or interface of elements to be obtained.
268+ * @param <T> Type of the target element.
252269 * @return List of elements.
253270 */
254271 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
261278 * @param locator Elements selector.
262279 * @param clazz Class or interface of elements to be obtained.
263280 * @param count Expected number of elements that have to be found (zero, more then zero, any).
281+ * @param <T> Type of the target element.
264282 * @return List of elements.
265283 */
266284 default <T extends IElement > List <T > findElements (By locator , Class <T > clazz , ElementsCount count ) {
0 commit comments