Skip to content

Commit c9cb688

Browse files
committed
Update javadoc for ExpectedConditions.not to explain a gotcha that can occur.
Resolves #332
1 parent 5eb1e01 commit c9cb688

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

Diff for: java/client/src/org/openqa/selenium/support/ui/ExpectedConditions.java

+4
Original file line numberDiff line numberDiff line change
@@ -705,6 +705,10 @@ public String toString() {
705705

706706
/**
707707
* An expectation with the logical opposite condition of the given condition.
708+
*
709+
* Note that if the Condition your are inverting throws an exception that is
710+
* caught by the Ignored Exceptions, the inversion will not take place and lead
711+
* to confusing results.
708712
*/
709713
public static ExpectedCondition<Boolean> not(final ExpectedCondition<?> condition) {
710714
return new ExpectedCondition<Boolean>() {

0 commit comments

Comments
 (0)