com.atlassian.jira.webtest.framework.core.context
Interface WebTestContext

All Known Implementing Classes:
SeleniumContext

public interface WebTestContext

Encapsulates all context information a web test needs to know. A single entry point into the framework.

Since:
v4.3

Method Summary
 Browser browser()
          Retrieve information about the browser used by this test.
<P extends PageObject>
P
getPageObject(Class<P> componentType)
          Get framework component of given type.
 GlobalPages globalPages()
          Collection of JIRA global pages that may be used to start navigating within the test.
 PageObjectFactory pageObjectFactory()
          A low-level interface for creating components of the framework.
 WebTestUi ui()
          Expose APIs for common UI operations performed by web tests, e.g.
 

Method Detail

pageObjectFactory

PageObjectFactory pageObjectFactory()
A low-level interface for creating components of the framework. Should not be used excessively, i most cases clients should use getPageObject(Class) instead.

Returns:
page object factory bound to this context

getPageObject

<P extends PageObject> P getPageObject(Class<P> componentType)
Get framework component of given type. The component may be created or cached within this context instance.

Type Parameters:
P - component type param
Parameters:
componentType - class of the component to retrieve
Returns:
component instance
Throws:
IllegalArgumentException - if this context does not support retrieval of components of componentType

globalPages

GlobalPages globalPages()
Collection of JIRA global pages that may be used to start navigating within the test.

Returns:
global pages collection instance
See Also:
GlobalPages, GlobalPage, GlobalPage.goTo()

browser

Browser browser()
Retrieve information about the browser used by this test.

Returns:
browser information

ui

WebTestUi ui()
Expose APIs for common UI operations performed by web tests, e.g. pressing shortcuts, moving mouse etc.

Returns:
an object encapsulating web tests UI operations
See Also:
WebTestUi


Copyright © 2002-2013 Atlassian. All Rights Reserved.