Skip to content

Commit

Permalink
Allowing FindBy, FindBys, FindAll annotations on types
Browse files Browse the repository at this point in the history
Helps building nested/modular PageObject structures.

Signed-off-by: Andreas Tolfsen <[email protected]>
  • Loading branch information
sevaseva authored and andreastt committed Apr 11, 2014
1 parent d971352 commit 636a0ae
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion java/client/src/org/openqa/selenium/support/FindAll.java
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
* </pre>
*/
@Retention(RetentionPolicy.RUNTIME)
@Target(ElementType.FIELD)
@Target({ElementType.FIELD, ElementType.TYPE})
public @interface FindAll {
FindBy[] value();
}
2 changes: 1 addition & 1 deletion java/client/src/org/openqa/selenium/support/FindBy.java
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@
* </pre>
*/
@Retention(RetentionPolicy.RUNTIME)
@Target(ElementType.FIELD)
@Target({ElementType.FIELD, ElementType.TYPE})
public @interface FindBy {
How how() default How.ID;

Expand Down
2 changes: 1 addition & 1 deletion java/client/src/org/openqa/selenium/support/FindBys.java
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
* </pre>
*/
@Retention(RetentionPolicy.RUNTIME)
@Target(ElementType.FIELD)
@Target({ElementType.FIELD, ElementType.TYPE})
public @interface FindBys {
FindBy[] value();
}

0 comments on commit 636a0ae

Please sign in to comment.