com.atlassian.confluence.selenium.client
Class LabelsEditor
java.lang.Object
com.atlassian.confluence.selenium.client.LabelsEditor
public class LabelsEditor
- extends java.lang.Object
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
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
LabelsEditor
public LabelsEditor(ConfluenceSeleniumClient client,
ConfluenceSeleniumAssertions assertThat)
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.