com.atlassian.confluence.selenium.client
Class LinkBrowser

java.lang.Object
  extended by com.atlassian.confluence.selenium.client.Dialog
      extended by com.atlassian.confluence.selenium.client.LinkBrowser

public class LinkBrowser
extends Dialog


Nested Class Summary
static class LinkBrowser.Tab
           
 
Field Summary
 
Fields inherited from class com.atlassian.confluence.selenium.client.Dialog
client, id
 
Constructor Summary
LinkBrowser(ConfluenceSeleniumClient client)
           
 
Method Summary
 void clickCancel()
           
 void clickInsert()
           
 void clickSearchButton()
           
 void escapeFromQuickSearch()
           
 String getAttachmentTitle(int row)
           
 int getDataTableRows()
           
 String getHeading()
           
 String getInsertButtonText()
           
 String getSelectedAttachment()
           
 LinkBrowser.Tab getSelectedTab()
           
 String getSpaceSelected()
           
 String getTextInAlias()
           
 String getTextInExternalLink()
           
 String getTextInSearch()
           
 boolean isAttachmentPresent(Attachment attachment)
           
 boolean isBreadcrumbsVisible()
           
 boolean isInsertButtonEnabled()
           
 boolean isPresentInDataTable(ContentEntity content)
           
 boolean isPresentInQuickSearch(String name)
           
 boolean isPresentInSearchResults(String contentType, String name)
           
 void pressEnterInAliasField()
          Press enter in the current link text field.
 void pressEnterInSearch()
           
 void quickSearch(String text)
          Types in the search field and fires key events to tigger the quick search.
 void searchAndSelect(String contentTitle)
           
 void selectAttachment(Attachment attachment)
           
 void selectFromDataTable(String title)
           
 void selectFromQuickSearch(String name)
           
 void selectSearchSpace(String spaceName)
           
 LinkBrowser selectTab(LinkBrowser.Tab tab)
           
 void typeExternalLink(String externalLink)
           
 void typeInSearch(String text)
          Types in the search field without firing key events.
 void typeTextInAlias(String text)
          Types in the current link text field.
 void waitForDataTable(int rows)
           
 void waitForDataTableMessage(String message)
           
 void waitForQuickSearchToClose()
          Waits for the quick search drop down to close.
 void waitUntilVisible()
           
 
Methods inherited from class com.atlassian.confluence.selenium.client.Dialog
clickButton, clickPageMenu, getId, getTitle, hasButton, hasPageMenu, isButtonDisabled, isVisible, pressEscape, waitUntilHidden
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LinkBrowser

public LinkBrowser(ConfluenceSeleniumClient client)
Method Detail

getHeading

public String getHeading()

waitUntilVisible

public void waitUntilVisible()
Overrides:
waitUntilVisible in class Dialog

clickInsert

public void clickInsert()

clickCancel

public void clickCancel()

selectTab

public LinkBrowser selectTab(LinkBrowser.Tab tab)

getSelectedTab

public LinkBrowser.Tab getSelectedTab()

getTextInAlias

public String getTextInAlias()
Returns:
the current text in the link text field.

typeTextInAlias

public void typeTextInAlias(String text)
Types in the current link text field.


pressEnterInAliasField

public void pressEnterInAliasField()
Press enter in the current link text field.


getTextInSearch

public String getTextInSearch()
Returns:
the current text in the search field

typeInSearch

public void typeInSearch(String text)
Types in the search field without firing key events.

See Also:
quickSearch(String)

pressEnterInSearch

public void pressEnterInSearch()

quickSearch

public void quickSearch(String text)
Types in the search field and fires key events to tigger the quick search.


selectFromQuickSearch

public void selectFromQuickSearch(String name)

isPresentInQuickSearch

public boolean isPresentInQuickSearch(String name)

waitForQuickSearchToClose

public void waitForQuickSearchToClose()
Waits for the quick search drop down to close.


escapeFromQuickSearch

public void escapeFromQuickSearch()

clickSearchButton

public void clickSearchButton()

typeExternalLink

public void typeExternalLink(String externalLink)

getTextInExternalLink

public String getTextInExternalLink()

isInsertButtonEnabled

public boolean isInsertButtonEnabled()

getSpaceSelected

public String getSpaceSelected()

selectSearchSpace

public void selectSearchSpace(String spaceName)

isBreadcrumbsVisible

public boolean isBreadcrumbsVisible()

isPresentInSearchResults

public boolean isPresentInSearchResults(String contentType,
                                        String name)

isAttachmentPresent

public boolean isAttachmentPresent(Attachment attachment)

getAttachmentTitle

public String getAttachmentTitle(int row)

getSelectedAttachment

public String getSelectedAttachment()

selectAttachment

public void selectAttachment(Attachment attachment)

getDataTableRows

public int getDataTableRows()

waitForDataTableMessage

public void waitForDataTableMessage(String message)

waitForDataTable

public void waitForDataTable(int rows)

isPresentInDataTable

public boolean isPresentInDataTable(ContentEntity content)

selectFromDataTable

public void selectFromDataTable(String title)

getInsertButtonText

public String getInsertButtonText()

searchAndSelect

public void searchAndSelect(String contentTitle)


Copyright © 2003-2011 Atlassian. All Rights Reserved.