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()
           
 java.lang.String getAttachmentTitle(int row)
           
 int getDataTableRows()
           
 java.lang.String getHeading()
           
 java.lang.String getInsertButtonText()
           
 java.lang.String getSelectedAttachment()
           
 LinkBrowser.Tab getSelectedTab()
           
 java.lang.String getSpaceSelected()
           
 java.lang.String getTextInAlias()
           
 java.lang.String getTextInExternalLink()
           
 java.lang.String getTextInSearch()
           
 boolean isAttachmentPresent(Attachment attachment)
           
 boolean isBreadcrumbsVisible()
           
 boolean isInsertButtonEnabled()
           
 boolean isPresentInDataTable(ContentEntity content)
           
 boolean isPresentInQuickSearch(java.lang.String name)
           
 boolean isPresentInSearchResults(java.lang.String contentType, java.lang.String name)
           
 void pressEnterInAliasField()
          Press enter in the current link text field.
 void pressEnterInSearch()
           
 void quickSearch(java.lang.String text)
          Types in the search field and fires key events to tigger the quick search.
 void searchAndSelect(java.lang.String contentTitle)
           
 void selectAttachment(Attachment attachment)
           
 void selectFromDataTable(java.lang.String title)
           
 void selectFromQuickSearch(java.lang.String name)
           
 void selectSearchSpace(java.lang.String spaceName)
           
 LinkBrowser selectTab(LinkBrowser.Tab tab)
           
 void typeExternalLink(java.lang.String externalLink)
           
 void typeInSearch(java.lang.String text)
          Types in the search field without firing key events.
 void typeTextInAlias(java.lang.String text)
          Types in the current link text field.
 void waitForDataTable(int rows)
           
 void waitForDataTableMessage(java.lang.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, 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 java.lang.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 java.lang.String getTextInAlias()
Returns:
the current text in the link text field.

typeTextInAlias

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


pressEnterInAliasField

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


getTextInSearch

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

typeInSearch

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

See Also:
quickSearch(String)

pressEnterInSearch

public void pressEnterInSearch()

quickSearch

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


selectFromQuickSearch

public void selectFromQuickSearch(java.lang.String name)

isPresentInQuickSearch

public boolean isPresentInQuickSearch(java.lang.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(java.lang.String externalLink)

getTextInExternalLink

public java.lang.String getTextInExternalLink()

isInsertButtonEnabled

public boolean isInsertButtonEnabled()

getSpaceSelected

public java.lang.String getSpaceSelected()

selectSearchSpace

public void selectSearchSpace(java.lang.String spaceName)

isBreadcrumbsVisible

public boolean isBreadcrumbsVisible()

isPresentInSearchResults

public boolean isPresentInSearchResults(java.lang.String contentType,
                                        java.lang.String name)

isAttachmentPresent

public boolean isAttachmentPresent(Attachment attachment)

getAttachmentTitle

public java.lang.String getAttachmentTitle(int row)

getSelectedAttachment

public java.lang.String getSelectedAttachment()

selectAttachment

public void selectAttachment(Attachment attachment)

getDataTableRows

public int getDataTableRows()

waitForDataTableMessage

public void waitForDataTableMessage(java.lang.String message)

waitForDataTable

public void waitForDataTable(int rows)

isPresentInDataTable

public boolean isPresentInDataTable(ContentEntity content)

selectFromDataTable

public void selectFromDataTable(java.lang.String title)

getInsertButtonText

public java.lang.String getInsertButtonText()

searchAndSelect

public void searchAndSelect(java.lang.String contentTitle)


Copyright © 2003-2010 Atlassian. All Rights Reserved.