com.atlassian.jira.webtest.framework.impl.selenium.condition
Class IsPresentCondition

java.lang.Object
  extended by com.atlassian.jira.webtest.framework.core.AbstractPollingQuery
      extended by com.atlassian.jira.webtest.framework.core.condition.AbstractTimedCondition
          extended by com.atlassian.jira.webtest.framework.impl.selenium.condition.AbstractSeleniumTimedCondition
              extended by com.atlassian.jira.webtest.framework.impl.selenium.condition.AbstractLocatorBasedTimedCondition
                  extended by com.atlassian.jira.webtest.framework.impl.selenium.condition.IsPresentCondition
All Implemented Interfaces:
ClockAware, TimedCondition, PollingQuery

public class IsPresentCondition
extends AbstractLocatorBasedTimedCondition
implements TimedCondition

Condition that an element specified by given locator must be present.

Since:
v4.2

Nested Class Summary
static class IsPresentCondition.Builder
           
 
Field Summary
 
Fields inherited from class com.atlassian.jira.webtest.framework.impl.selenium.condition.AbstractLocatorBasedTimedCondition
locator
 
Fields inherited from class com.atlassian.jira.webtest.framework.impl.selenium.condition.AbstractSeleniumTimedCondition
client, context, DEFAULT_TIMEOUT
 
Fields inherited from class com.atlassian.jira.webtest.framework.core.AbstractPollingQuery
defaultTimeout, interval
 
Constructor Summary
IsPresentCondition(SeleniumContext context, Locator locator)
           
IsPresentCondition(SeleniumContext context, SeleniumLocator locator)
           
IsPresentCondition(SeleniumContext context, String locator)
           
 
Method Summary
static IsPresentCondition.Builder forContext(SeleniumContext ctx)
           
 boolean now()
          Evaluate the condition immediately.
 
Methods inherited from class com.atlassian.jira.webtest.framework.impl.selenium.condition.AbstractLocatorBasedTimedCondition
locator, toString
 
Methods inherited from class com.atlassian.jira.webtest.framework.core.condition.AbstractTimedCondition
by, byDefaultTimeout, clock
 
Methods inherited from class com.atlassian.jira.webtest.framework.core.AbstractPollingQuery
defaultTimeout, interval
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface com.atlassian.jira.webtest.framework.core.condition.TimedCondition
by, byDefaultTimeout
 
Methods inherited from interface com.atlassian.jira.webtest.framework.core.PollingQuery
defaultTimeout, interval
 

Constructor Detail

IsPresentCondition

public IsPresentCondition(SeleniumContext context,
                          String locator)

IsPresentCondition

public IsPresentCondition(SeleniumContext context,
                          SeleniumLocator locator)

IsPresentCondition

public IsPresentCondition(SeleniumContext context,
                          Locator locator)
Method Detail

forContext

public static IsPresentCondition.Builder forContext(SeleniumContext ctx)

now

public boolean now()
Description copied from interface: TimedCondition
Evaluate the condition immediately.

Specified by:
now in interface TimedCondition
Returns:
current evaluation of the underlying condition.


Copyright © 2002-2013 Atlassian. All Rights Reserved.