org.xwiki.test.ui.po.editor.wysiwyg
Class MenuBarElement

java.lang.Object
  extended by org.xwiki.test.ui.po.BaseElement
      extended by org.xwiki.test.ui.po.editor.wysiwyg.MenuBarElement

public class MenuBarElement
extends BaseElement

Models the menu bar of the WYSIWYG content editor.

Since:
3.2M3
Version:
$Id: f70d4d0734d8c3f54467ac17462d0b924f037f77 $

Constructor Summary
MenuBarElement(org.openqa.selenium.WebElement container)
          Creates a new instance that can be used to control the menu bar inside the given container.
 
Method Summary
 void clickImageMenu()
          Clicks on the image menu.
 AttachedImageSelectPane clickInsertAttachedImageMenu()
          Clicks on the "Attached Image..." menu.
 TableConfigPane clickInsertTableMenu()
          Clicks on the "Insert Table..." menu.
 void clickTableMenu()
          Click on the table menu.
 
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

MenuBarElement

public MenuBarElement(org.openqa.selenium.WebElement container)
Creates a new instance that can be used to control the menu bar inside the given container.

Parameters:
container - the element that wraps the menu bar
Method Detail

clickImageMenu

public void clickImageMenu()
Clicks on the image menu.


clickTableMenu

public void clickTableMenu()
Click on the table menu.


clickInsertAttachedImageMenu

public AttachedImageSelectPane clickInsertAttachedImageMenu()
Clicks on the "Attached Image..." menu.

Returns:
the pane used to select an attached image to insert

clickInsertTableMenu

public TableConfigPane clickInsertTableMenu()
Clicks on the "Insert Table..." menu.

Returns:
the pane used to configure the table to be inserted


Copyright © 2004-2013 XWiki. All Rights Reserved.