Skip to content

Commit

Permalink
selenide#1136 deprecate Conditions that were created for using with $…
Browse files Browse the repository at this point in the history
….waitUntil/$.waitWhile methods
  • Loading branch information
asolntsev authored and Andrei Koira committed Jun 13, 2021
1 parent 0f690db commit fe5d22a
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion src/main/java/com/codeborne/selenide/Condition.java
Expand Up @@ -80,15 +80,19 @@ public abstract class Condition {
/**
* Synonym for {@link #visible} - may be used for better readability
* <p><code>$("#logoutLink").waitUntil(appears, 10000);</code></p>
* <p>
* @deprecated use {@link #visible} or {@link #appear}
*/
@Deprecated
public static final Condition appears = visible;

/**
* Synonym for {@link #hidden} - may be used for better readability:
*
* <p>Sample: <code>$("#loginLink").waitUntil(disappears, 9000);</code></p>
*
* @deprecated use {@link #disappear} or {@link #hidden}
*/
@Deprecated
public static final Condition disappears = hidden;

/**
Expand Down Expand Up @@ -261,7 +265,9 @@ public static Condition id(String id) {
* <p>Sample: <code>$(".error_message").waitWhile(matchesText("Exception"), 12000)</code></p>
*
* @see #matchText(String)
* @deprecated use {@link #matchText(String)}
*/
@Deprecated
@CheckReturnValue
@Nonnull
public static Condition matchesText(String text) {
Expand Down

0 comments on commit fe5d22a

Please sign in to comment.