com.atlassian.jira.webtest.framework.impl.selenium.page.admin.plugins
Class SeleniumPluginsList<T extends PluginComponent<T>>

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
          extended by com.atlassian.jira.webtest.framework.impl.selenium.core.AbstractLocatorBasedPageObject
              extended by com.atlassian.jira.webtest.framework.impl.selenium.page.admin.plugins.SeleniumPluginsList<T>
All Implemented Interfaces:
Localizable, PageObject, PluginsList<T>

public class SeleniumPluginsList<T extends PluginComponent<T>>
extends AbstractLocatorBasedPageObject
implements PluginsList<T>

Selenium implementation of the PluginsList interface.

Since:
v4.3

Field Summary
 
Fields inherited from class com.atlassian.jira.webtest.framework.impl.selenium.core.SeleniumContextAware
assertThat, client, context, timeouts
 
Constructor Summary
protected SeleniumPluginsList(SeleniumContext context, String mainId, PluginComponentFactory<T> componentFactory)
           
 
Method Summary
protected  SeleniumLocator detector()
          Main locator of this page object.
 TimedQuery<T> findPluginComponent(String pluginKey)
          Retrieve component with given pluginKey.
 TimedCondition hasPluginComponent(String pluginKey)
          Check if this list has component with given pluginKey.
 TimedCondition hasPluginComponentMatching(String pluginKeyRegex)
          Check if this list has at least one component matching pluginKeyRegex.
 Locator locator()
          Locator unambiguously locating this page object.
 
Methods inherited from class com.atlassian.jira.webtest.framework.impl.selenium.core.AbstractLocatorBasedPageObject
isReady
 
Methods inherited from class com.atlassian.jira.webtest.framework.impl.selenium.core.AbstractSeleniumPageObject
body, conditions, css, forClass, id, jQuery, locatorFor, name, queries, waitFor, xpath
 
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

SeleniumPluginsList

protected SeleniumPluginsList(SeleniumContext context,
                              String mainId,
                              PluginComponentFactory<T> componentFactory)
Method Detail

hasPluginComponent

public TimedCondition hasPluginComponent(String pluginKey)
Description copied from interface: PluginsList
Check if this list has component with given pluginKey.

Specified by:
hasPluginComponent in interface PluginsList<T extends PluginComponent<T>>
Parameters:
pluginKey - plugin key to check
Returns:
timed condition checking if a component with given key exists in this list

hasPluginComponentMatching

public TimedCondition hasPluginComponentMatching(String pluginKeyRegex)
Description copied from interface: PluginsList
Check if this list has at least one component matching pluginKeyRegex.

Specified by:
hasPluginComponentMatching in interface PluginsList<T extends PluginComponent<T>>
Parameters:
pluginKeyRegex - regular expression of the plugin key to check
Returns:
timed condition checking if a component with key matching given expression exists in this list

findPluginComponent

public TimedQuery<T> findPluginComponent(String pluginKey)
Description copied from interface: PluginsList
Retrieve component with given pluginKey.

Specified by:
findPluginComponent in interface PluginsList<T extends PluginComponent<T>>
Parameters:
pluginKey - plugin key
Returns:
query for component with given plugin key in this list

detector

protected SeleniumLocator detector()
Description copied from class: AbstractLocatorBasedPageObject
Main locator of this page object. Its presence means that this object is ready to be manipulated in the test.

Specified by:
detector in class AbstractLocatorBasedPageObject
Returns:
main locator of this page object

locator

public Locator locator()
Description copied from interface: Localizable
Locator unambiguously locating this page object.

Specified by:
locator in interface Localizable
Returns:
locator


Copyright © 2002-2013 Atlassian. All Rights Reserved.