com.atlassian.confluence.pageobjects.component.menu
Class AUIDropdownMenu

java.lang.Object
  extended by com.atlassian.confluence.pageobjects.component.ConfluenceAbstractPageComponent
      extended by com.atlassian.confluence.pageobjects.component.menu.AUIDropdownMenu
All Implemented Interfaces:
Menu, PageComponent
Direct Known Subclasses:
AddMenu, BrowseMenu, ConfluenceUserMenu, CreateMenu, HelpMenu, SpacesMenu, ToolsMenu

public class AUIDropdownMenu
extends ConfluenceAbstractPageComponent
implements Menu

Represents any dropdown menu created via AUI.

Since:
4.1 TODO replace with AuiDropdown2, when it's useful

Field Summary
protected  org.openqa.selenium.By menuContainerLocator
           
protected  org.openqa.selenium.WebElement menuTrigger
           
 
Fields inherited from class com.atlassian.confluence.pageobjects.component.ConfluenceAbstractPageComponent
driver, frameExecutor, pageBinder, pageElementFinder, waiter
 
Constructor Summary
AUIDropdownMenu(java.lang.String triggerId)
           
 
Method Summary
 java.lang.Object click(java.lang.Class<? extends MenuItem> item, java.lang.Object... args)
           
 AUIDropdownMenu close()
           
 org.openqa.selenium.WebElement getMenuContainer()
           
 ConfluenceMenuItem getMenuItem(org.openqa.selenium.By by)
           
 void initialise()
           
 boolean isMostRightMenu()
          Verifies if the menu represented is the first one starting from the right of the page (considering only menus aligned on the same container, not all the menus in the page)
 boolean isOpen()
           
 AUIDropdownMenu open()
           
 java.lang.String toString()
           
 
Methods inherited from class com.atlassian.confluence.pageobjects.component.ConfluenceAbstractPageComponent
getComponent
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

menuTrigger

protected org.openqa.selenium.WebElement menuTrigger

menuContainerLocator

protected org.openqa.selenium.By menuContainerLocator
Constructor Detail

AUIDropdownMenu

public AUIDropdownMenu(java.lang.String triggerId)
Method Detail

initialise

public void initialise()

isOpen

public boolean isOpen()

open

public AUIDropdownMenu open()

close

public AUIDropdownMenu close()

isMostRightMenu

public boolean isMostRightMenu()
Verifies if the menu represented is the first one starting from the right of the page (considering only menus aligned on the same container, not all the menus in the page)


getMenuContainer

public org.openqa.selenium.WebElement getMenuContainer()
Specified by:
getMenuContainer in interface Menu

getMenuItem

public ConfluenceMenuItem getMenuItem(org.openqa.selenium.By by)

click

public java.lang.Object click(java.lang.Class<? extends MenuItem> item,
                              java.lang.Object... args)
Specified by:
click in interface Menu

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object


Copyright © 2003-2013 Atlassian. All Rights Reserved.