com.atlassian.confluence.pageobjects.component.dialog
Class LabelsDialog

java.lang.Object
  extended by com.atlassian.confluence.pageobjects.component.ConfluenceAbstractPageComponent
      extended by com.atlassian.confluence.pageobjects.component.dialog.AbstractDialog
          extended by com.atlassian.confluence.pageobjects.component.dialog.Dialog
              extended by com.atlassian.confluence.pageobjects.component.dialog.LabelsDialog
All Implemented Interfaces:
PageComponent

public class LabelsDialog
extends Dialog


Field Summary
protected  com.atlassian.pageobjects.PageBinder pageBinder
           
 
Fields inherited from class com.atlassian.confluence.pageobjects.component.dialog.AbstractDialog
id
 
Fields inherited from class com.atlassian.confluence.pageobjects.component.ConfluenceAbstractPageComponent
driver, pageElementFinder, waiter
 
Constructor Summary
LabelsDialog()
           
 
Method Summary
 LabelsDialog addLabel(String label)
          Types in the label input and clicks add.
 LabelsDialog addLabelAndWait(String label)
          Types in the label input and clicks add.
 String addLabelAndWaitForError(String label)
           
 LabelsDialog addLabelWithAutocomplete(String autocompleteText, String expectedLabel)
           
 void close()
           
 String getErrorMessage()
          Waits for the error message to be visible and returns the error text.
 List<String> getLabels()
           
 DialogLabelSection getLabelSection()
           
 boolean hasErrorMessage()
           
 com.atlassian.pageobjects.elements.query.TimedCondition isOpen()
           
 com.atlassian.pageobjects.elements.query.TimedCondition isReady()
           
 LabelsDialog removeLabel(String labelText)
           
 
Methods inherited from class com.atlassian.confluence.pageobjects.component.dialog.Dialog
clickButton, clickCancel, clickLink, clickPageMenu, find, findAll, getTitle, hasButton, hasLink, hasPageMenu, isButtonDisabled
 
Methods inherited from class com.atlassian.confluence.pageobjects.component.dialog.AbstractDialog
getId, isVisible, pressEscape, pressEscapeOnly, waitForRemoval, waitUntilHidden, waitUntilVisible
 
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, toString, wait, wait, wait
 

Field Detail

pageBinder

@Inject
protected com.atlassian.pageobjects.PageBinder pageBinder
Constructor Detail

LabelsDialog

public LabelsDialog()
Method Detail

getLabelSection

public DialogLabelSection getLabelSection()

addLabel

public LabelsDialog addLabel(String label)
Types in the label input and clicks add. This method does not wait for the label to be added.


addLabelAndWait

public LabelsDialog addLabelAndWait(String label)
Types in the label input and clicks add. This method waits for the typed label to be added.


addLabelAndWaitForError

public String addLabelAndWaitForError(String label)

close

public void close()

removeLabel

public LabelsDialog removeLabel(String labelText)

isOpen

public com.atlassian.pageobjects.elements.query.TimedCondition isOpen()

isReady

public com.atlassian.pageobjects.elements.query.TimedCondition isReady()

getLabels

public List<String> getLabels()

getErrorMessage

public String getErrorMessage()
Waits for the error message to be visible and returns the error text.


hasErrorMessage

public boolean hasErrorMessage()

addLabelWithAutocomplete

public LabelsDialog addLabelWithAutocomplete(String autocompleteText,
                                             String expectedLabel)


Copyright © 2003-2013 Atlassian. All Rights Reserved.