org.xwiki.extension.test.po
Class ExtensionPane

java.lang.Object
  extended by org.xwiki.test.ui.po.BaseElement
      extended by org.xwiki.extension.test.po.ExtensionPane

public class ExtensionPane
extends BaseElement

Displays an extension.

Since:
4.2M1
Version:
$Id: 78ff81dc518413ce3987c2e1935716c81c1bce27 $

Constructor Summary
ExtensionPane(org.openqa.selenium.WebElement container)
          Creates a new instance.
 
Method Summary
 ExtensionPane confirm()
          Confirms the current action and wait for it to be performed.
 ExtensionPane downgrade()
          Clicks on the downgrade button and waits for the downgrade plan to be computed.
 String getAuthors()
           
 org.openqa.selenium.WebElement getDowngradeButton()
           
 org.xwiki.extension.ExtensionId getId()
           
 org.openqa.selenium.WebElement getInstallButton()
           
 String getName()
           
 ProgressBarPane getProgressBar()
           
 String getStatus()
           
 String getStatusMessage()
           
 String getSummary()
           
 org.openqa.selenium.WebElement getUninstallButton()
           
 org.openqa.selenium.WebElement getUpgradeButton()
           
 String getVersion()
           
 ExtensionPane hideDetails()
          Clicks on the hide details button.
 ExtensionPane install()
          Clicks on the install button and waits for the install plan to be computed.
 ExtensionDependenciesPane openDependenciesSection()
          Selects the extension dependencies tab.
 ExtensionDescriptionPane openDescriptionSection()
          Selects the extension description tab.
 ExtensionProgressPane openProgressSection()
          Selects the extension progress tab.
 ExtensionPane showDetails()
          Clicks on the show details button.
 ExtensionPane uninstall()
          Clicks on the uninstall button and waits for the uninstall plan to be computed.
 ExtensionPane upgrade()
          Clicks on the upgrade button and waits for the upgrade plan to be computed.
 
Methods inherited from class org.xwiki.test.ui.po.BaseElement
executeJavascript, getDriver, getUtil, makeAlertDialogSilent, makeConfirmDialogSilent, makeElementVisible, makeElementVisible, setContext, waitForNotificationErrorMessage, waitForNotificationSuccessMessage, waitForNotificationWarningMessage, waitUntilElementDisappears, waitUntilElementEndsWithAttributeValue, waitUntilElementHasAttributeValue, waitUntilElementHasTextContent, waitUntilElementIsVisible, waitUntilElementsAreVisible
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ExtensionPane

public ExtensionPane(org.openqa.selenium.WebElement container)
Creates a new instance.

Parameters:
container - the element that wraps the extension display
Method Detail

getStatus

public String getStatus()
Returns:
the extension status (loading, core, installed, remote, remote-installed, remote-core, remote-installed-incompatible, remote-core-incompatible)

getStatusMessage

public String getStatusMessage()
Returns:
the extension status message

getId

public org.xwiki.extension.ExtensionId getId()
Returns:
the extension identifier

getName

public String getName()
Returns:
the extension name

getVersion

public String getVersion()
Returns:
the extension version

getAuthors

public String getAuthors()
Returns:
the extension authors

getSummary

public String getSummary()
Returns:
the extension summary

showDetails

public ExtensionPane showDetails()
Clicks on the show details button.

Returns:
the extension pane showing the extension details

hideDetails

public ExtensionPane hideDetails()
Clicks on the hide details button.

Returns:
the extension pane that doesn't show the extension details

install

public ExtensionPane install()
Clicks on the install button and waits for the install plan to be computed.

Returns:
the extension pane displaying the install plan

getInstallButton

public org.openqa.selenium.WebElement getInstallButton()
Returns:
the install button, if present

uninstall

public ExtensionPane uninstall()
Clicks on the uninstall button and waits for the uninstall plan to be computed.

Returns:
the extension pane displaying the uninstall plan

getUninstallButton

public org.openqa.selenium.WebElement getUninstallButton()
Returns:
the uninstall button, if present

upgrade

public ExtensionPane upgrade()
Clicks on the upgrade button and waits for the upgrade plan to be computed.

Returns:
the extension pane displaying the upgrade plan

getUpgradeButton

public org.openqa.selenium.WebElement getUpgradeButton()
Returns:
the upgrade button, if present

downgrade

public ExtensionPane downgrade()
Clicks on the downgrade button and waits for the downgrade plan to be computed.

Returns:
the extension pane displaying the downgrade plan

getDowngradeButton

public org.openqa.selenium.WebElement getDowngradeButton()
Returns:
the downgrade button, if present

confirm

public ExtensionPane confirm()
Confirms the current action and wait for it to be performed.

Returns:
the extension pane displaying the extension after the current action has been performed

openDescriptionSection

public ExtensionDescriptionPane openDescriptionSection()
Selects the extension description tab.

Returns:
the extension description section

openDependenciesSection

public ExtensionDependenciesPane openDependenciesSection()
Selects the extension dependencies tab.

Returns:
the extension dependencies section

openProgressSection

public ExtensionProgressPane openProgressSection()
Selects the extension progress tab.

Returns:
the extension progress section

getProgressBar

public ProgressBarPane getProgressBar()
Returns:
the progress bar pane


Copyright © 2004-2012 XWiki. All Rights Reserved.