com.atlassian.confluence.selenium.client
Class LabelsDialog

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

public class LabelsDialog
extends Object


Field Summary
static String LABELS_EDIT_ICON_ID
           
static String LABELS_INPUT_FIELD_ID
           
static String LABELS_SECTION_NONE_ID
           
 
Constructor Summary
LabelsDialog(ConfluenceSeleniumClient client, ConfluenceSeleniumAssertions assertThat)
           
 
Method Summary
 void autocompleteWith(String text, 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()
           
 String getTextInInputField()
           
 String getToggleElementId()
          Get the id of the element used to open and close the labels editor
 boolean hasLabel(String label)
           
 boolean isOpen()
           
static LabelsDialog onEditPage(ConfluenceSeleniumClient client, ConfluenceSeleniumAssertions assertThat)
           
static LabelsDialog onViewPage(ConfluenceSeleniumClient client, ConfluenceSeleniumAssertions assertThat)
           
 void open()
           
 void removeLabel(String label)
           
 void type(String text)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

LABELS_INPUT_FIELD_ID

public static final String LABELS_INPUT_FIELD_ID
See Also:
Constant Field Values

LABELS_SECTION_NONE_ID

public static final String LABELS_SECTION_NONE_ID
See Also:
Constant Field Values

LABELS_EDIT_ICON_ID

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

LabelsDialog

public LabelsDialog(ConfluenceSeleniumClient client,
                    ConfluenceSeleniumAssertions assertThat)
Method Detail

onViewPage

public static LabelsDialog onViewPage(ConfluenceSeleniumClient client,
                                      ConfluenceSeleniumAssertions assertThat)

onEditPage

public static LabelsDialog onEditPage(ConfluenceSeleniumClient client,
                                      ConfluenceSeleniumAssertions assertThat)

getToggleElementId

public 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()

hasLabel

public boolean hasLabel(String label)

getTextInInputField

public String getTextInInputField()

type

public void type(String text)

autocompleteWith

public void autocompleteWith(String text,
                             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(String label)


Copyright © 2003-2011 Atlassian. All Rights Reserved.