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