com.atlassian.confluence.selenium.client
Class LabelsEditor

java.lang.Object
  extended by com.atlassian.confluence.selenium.client.LabelsEditor

public class LabelsEditor
extends java.lang.Object


Field Summary
static java.lang.String LABELS_EDIT_ICON_ID
           
static java.lang.String LABELS_SECTION_NONE_ID
           
static java.lang.String LABELS_SECTION_TITLE_ID
           
 
Constructor Summary
LabelsEditor(ConfluenceSeleniumClient client, ConfluenceSeleniumAssertions assertThat)
           
 
Method Summary
 void autocompleteWith(java.lang.String text, java.lang.String expectedLabel)
          Trigger the label autocomplete with the given text and the label you expect to appear in the autocomplete list.
 void clickAdd()
           
 void clickDone()
           
 void close()
           
 java.lang.String getTextInInputField()
           
 java.lang.String getToggleElementId()
          Get the id of the element used to open and close the labels editor
 boolean isOpen()
           
static LabelsEditor onEditPage(ConfluenceSeleniumClient client, ConfluenceSeleniumAssertions assertThat)
           
static LabelsEditor onViewPage(ConfluenceSeleniumClient client, ConfluenceSeleniumAssertions assertThat)
           
 void open()
           
 void removeLabel(java.lang.String label)
           
 void type(java.lang.String text)
           
 void waitForSuggestedLabels()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

LABELS_SECTION_TITLE_ID

public static final java.lang.String LABELS_SECTION_TITLE_ID
See Also:
Constant Field Values

LABELS_SECTION_NONE_ID

public static final java.lang.String LABELS_SECTION_NONE_ID
See Also:
Constant Field Values

LABELS_EDIT_ICON_ID

public static final java.lang.String LABELS_EDIT_ICON_ID
See Also:
Constant Field Values
Constructor Detail

LabelsEditor

public LabelsEditor(ConfluenceSeleniumClient client,
                    ConfluenceSeleniumAssertions assertThat)
Method Detail

onViewPage

public static LabelsEditor onViewPage(ConfluenceSeleniumClient client,
                                      ConfluenceSeleniumAssertions assertThat)

onEditPage

public static LabelsEditor onEditPage(ConfluenceSeleniumClient client,
                                      ConfluenceSeleniumAssertions assertThat)

getToggleElementId

public java.lang.String getToggleElementId()
Get the id of the element used to open and close the labels editor


open

public void open()

close

public void close()

isOpen

public boolean isOpen()

waitForSuggestedLabels

public void waitForSuggestedLabels()

getTextInInputField

public java.lang.String getTextInInputField()

type

public void type(java.lang.String text)

autocompleteWith

public void autocompleteWith(java.lang.String text,
                             java.lang.String expectedLabel)
Trigger the label autocomplete with the given text and the label you expect to appear in the autocomplete list. Expected label can be passed in as null if you are not expecting any particular label. Note: this method only works for Firefox as it relies on the typeWithFullKeyEvents() method


clickAdd

public void clickAdd()

clickDone

public void clickDone()

removeLabel

public void removeLabel(java.lang.String label)


Copyright © 2003-2011 Atlassian. All Rights Reserved.