com.atlassian.jira.webtest.framework.impl.selenium.core
Class AbstractSeleniumPageObject

java.lang.Object
  extended by com.atlassian.jira.webtest.framework.impl.selenium.core.SeleniumContextAware
      extended by com.atlassian.jira.webtest.framework.impl.selenium.core.AbstractSeleniumPageObject
All Implemented Interfaces:
PageObject
Direct Known Subclasses:
AbstractDialogOpenMode, AbstractLocatorBasedPageObject, ReloadingSelect, SeleniumLinkIssueForm

public abstract class AbstractSeleniumPageObject
extends SeleniumContextAware
implements PageObject

Utility base class that contains many DSL-style methods based on the SeleniumContext, accessible to subclasses.

Your page objects will be so much cooler now!

Since:
v4.2

Field Summary
 
Fields inherited from class com.atlassian.jira.webtest.framework.impl.selenium.core.SeleniumContextAware
assertThat, client, context, timeouts
 
Constructor Summary
protected AbstractSeleniumPageObject(SeleniumContext context)
           
 
Method Summary
protected  SeleniumLocator body()
           
protected  SeleniumConditions conditions()
           
protected  SeleniumLocator css(String cssSelector)
          Creates CSS locator for given css selector.
protected  SeleniumLocator forClass(String className)
          Creates class locator for given class name.
protected  SeleniumLocator id(String id)
          Creates ID locator for given ID.
protected  SeleniumLocator jQuery(String jquery)
          Creates jQuery locator for given jQuery selector.
protected  SeleniumLocator locatorFor(LocatorData locData)
          Creates locator of given type.
protected  SeleniumLocator name(String name)
          Creates name locator for given HTML name.
protected  SeleniumQueries queries()
           
protected  SeleniumWaits waitFor()
           
protected  SeleniumLocator xpath(String xpath)
          Creates XPath locator for given XPath query.
 
Methods inherited from class com.atlassian.jira.webtest.framework.impl.selenium.core.SeleniumContextAware
context
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface com.atlassian.jira.webtest.framework.core.PageObject
context, isReady
 

Constructor Detail

AbstractSeleniumPageObject

protected AbstractSeleniumPageObject(SeleniumContext context)
Method Detail

id

protected final SeleniumLocator id(String id)
Creates ID locator for given ID.

Parameters:
id - id of the element
Returns:
ID locator
See Also:
Locators.ID, SeleniumLocators.id(String, SeleniumContext)

name

protected final SeleniumLocator name(String name)
Creates name locator for given HTML name.

Parameters:
name - name of the element
Returns:
name locator
See Also:
SeleniumLocators.NAME, SeleniumLocators.name(String, SeleniumContext)

forClass

protected final SeleniumLocator forClass(String className)
Creates class locator for given class name.

Parameters:
className - class name of the element
Returns:
class name locator
See Also:
Locators.CLASS, SeleniumLocators.forClass(String, SeleniumContext)

css

protected final SeleniumLocator css(String cssSelector)
Creates CSS locator for given css selector.

Parameters:
cssSelector - CSS selector of the element
Returns:
CSS locator
See Also:
Locators.CSS, SeleniumLocators.css(String, SeleniumContext)

jQuery

protected final SeleniumLocator jQuery(String jquery)
Creates jQuery locator for given jQuery selector.

Parameters:
jquery - jQuery selector of the element
Returns:
jQuery locator
See Also:
Locators.JQUERY, SeleniumLocators.jQuery(String, SeleniumContext)

xpath

protected final SeleniumLocator xpath(String xpath)
Creates XPath locator for given XPath query.

Parameters:
xpath - XPath query
Returns:
XPath locator
See Also:
Locators.XPATH, SeleniumLocators.xpath(String, SeleniumContext)

locatorFor

protected final SeleniumLocator locatorFor(LocatorData locData)
Creates locator of given type.

Parameters:
locData - locator data
Returns:
locator

queries

protected final SeleniumQueries queries()

conditions

protected final SeleniumConditions conditions()

waitFor

protected final SeleniumWaits waitFor()

body

protected final SeleniumLocator body()


Copyright © 2002-2013 Atlassian. All Rights Reserved.