com.thoughtworks.selenium.condition
Class Presence

java.lang.Object
  extended by com.thoughtworks.selenium.condition.Condition
      extended by com.thoughtworks.selenium.condition.Presence

public class Presence
extends Condition

Checks whether a given locator exists on the page.


Constructor Summary
Presence(java.lang.String locator)
           
 
Method Summary
 boolean isTrue(ConditionRunner.Context context)
           
 
Methods inherited from class com.thoughtworks.selenium.condition.Condition
getMessage, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Presence

public Presence(java.lang.String locator)
Parameters:
locator - the element which must be present
Method Detail

isTrue

public boolean isTrue(ConditionRunner.Context context)
Specified by:
isTrue in class Condition


Copyright © 2011. All Rights Reserved.