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


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
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
 

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

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-2010 Atlassian. All Rights Reserved.