View Javadoc

1   package com.atlassian.selenium;
2   
3   import com.thoughtworks.selenium.Selenium;
4   
5   /**
6    * Conditions used to make assertions in {@link SeleniumAssertions#byTimeout(Condition)} methods.
7    */
8   public interface Condition
9   {
10      /**
11       * A method to test a condition.
12       * @return true if the test executed passed
13       */
14      boolean executeTest(Selenium selenium);
15  
16      /**
17       * @return An error message to display if the test execution failed. 
18       */
19      String errorMessage();
20  }