Skip to content

Commit

Permalink
chore: Mark Windows page object annotations as deprecated (#1938)
Browse files Browse the repository at this point in the history
  • Loading branch information
mykola-mokhnach authored Jun 8, 2023
1 parent 431edd3 commit 0c7086f
Show file tree
Hide file tree
Showing 7 changed files with 14 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,9 @@

/**
* Used to build a complex Windows automation locator.
* @deprecated This annotation is deprecated and will be removed.
*/
@Deprecated
public @interface WindowsBy {

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,9 @@
* of {@link WindowsBy} tags
* It will then search for all elements that match any criteria. Note that elements
* are not guaranteed to be in document order.
* @deprecated This annotation is deprecated and will be removed.
*/
@Deprecated
@Retention(RUNTIME) @Target({FIELD, TYPE})
@Repeatable(WindowsFindByAllSet.class)
public @interface WindowsFindAll {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,9 @@
* {@link org.openqa.selenium.support.PageFactory}
* this allows users to quickly and easily create PageObjects.
* using Windows automation selectors, accessibility, id, name, class name, tag and xpath
* @deprecated This annotation is deprecated and will be removed.
*/
@Deprecated
@Retention(RUNTIME) @Target({FIELD, TYPE})
@Repeatable(WindowsFindBySet.class)
public @interface WindowsFindBy {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,9 @@
/**
* Defines set of chained/possible locators. Each one locator
* should be defined with {@link WindowsFindAll}
* @deprecated This annotation is deprecated and will be removed.
*/
@Deprecated
@Target(value = {TYPE, FIELD})
@Retention(value = RUNTIME)
public @interface WindowsFindByAllSet {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,9 @@
/**
* Defines set of chained/possible locators. Each one locator
* should be defined with {@link WindowsFindBys}
* @deprecated This annotation is deprecated and will be removed.
*/
@Deprecated
@Target(value = {TYPE, FIELD})
@Retention(value = RUNTIME)
public @interface WindowsFindByChainSet {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,9 @@
/**
* Defines set of chained/possible locators. Each one locator
* should be defined with {@link WindowsFindBy}
* @deprecated This annotation is deprecated and will be removed.
*/
@Deprecated
@Target(value = {TYPE, FIELD})
@Retention(value = RUNTIME)
public @interface WindowsFindBySet {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,9 @@
/**
* Used to mark a field on a Page Object to indicate that lookup should use
* a series of {@link WindowsBy} tags.
* @deprecated This annotation is deprecated and will be removed.
*/
@Deprecated
@Retention(RUNTIME) @Target({FIELD, TYPE})
@Repeatable(WindowsFindByChainSet.class)
public @interface WindowsFindBys {
Expand Down

0 comments on commit 0c7086f

Please sign in to comment.