com.atlassian.jira.webtest.selenium.framework.pages
Class AbstractPage

java.lang.Object
  extended by com.atlassian.jira.webtest.selenium.framework.core.AbstractSeleniumPageObject
      extended by com.atlassian.jira.webtest.selenium.framework.pages.AbstractPage
All Implemented Interfaces:
PageObject, Page
Direct Known Subclasses:
AbstractGlobalPage

public abstract class AbstractPage
extends AbstractSeleniumPageObject
implements Page

Abstract implementation of the Page interface.

Implemented methods are templates defined in terms of an abstract method detector(),

Since:
v4.2

Field Summary
 
Fields inherited from class com.atlassian.jira.webtest.selenium.framework.core.AbstractSeleniumPageObject
assertThat, client, context
 
Constructor Summary
protected AbstractPage(SeleniumContext ctx)
           
 
Method Summary
 void assertReady(long timeout)
          Assert that this object is loaded and ready to be exercised by Selenium.
protected  void checkOnPage()
           
protected abstract  String detector()
          Locator used to check if we are currently at the page
 boolean isAt()
          Check if the test driver is currently at this page
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AbstractPage

protected AbstractPage(SeleniumContext ctx)
Method Detail

isAt

public final boolean isAt()
Description copied from interface: Page
Check if the test driver is currently at this page

Specified by:
isAt in interface Page
Returns:
true, if the test driver is currently at this page, false otherwise

assertReady

public final void assertReady(long timeout)
Description copied from interface: PageObject
Assert that this object is loaded and ready to be exercised by Selenium.

Specified by:
assertReady in interface PageObject
Parameters:
timeout - timeout to wait

detector

protected abstract String detector()
Locator used to check if we are currently at the page

Returns:
locator indicative of the page

checkOnPage

protected final void checkOnPage()


Copyright © 2002-2012 Atlassian. All Rights Reserved.