com.atlassian.confluence.selenium.client
Class LinkBrowser
java.lang.Object
com.atlassian.confluence.selenium.client.Dialog
com.atlassian.confluence.selenium.client.LinkBrowser
public class LinkBrowser
- extends Dialog
Fields inherited from class com.atlassian.confluence.selenium.client.Dialog |
client, id |
Methods inherited from class com.atlassian.confluence.selenium.client.Dialog |
clickButton, clickLink, clickPageMenu, getId, getTitle, hasButton, hasLink, hasPageMenu, isButtonDisabled, isVisible, pressEscape, pressEscapeOnly, waitForRemoval, waitUntilClosed |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
INSERT_TITLE
public static final java.lang.String INSERT_TITLE
- See Also:
- Constant Field Values
EDIT_TITLE
public static final java.lang.String EDIT_TITLE
- See Also:
- Constant Field Values
EDIT_BUTTON
public static final java.lang.String EDIT_BUTTON
- See Also:
- Constant Field Values
EXTERNAL_LINK_LOCATOR
public static final java.lang.String EXTERNAL_LINK_LOCATOR
- See Also:
- Constant Field Values
ADVANCED_LINK_LOCATOR
public static final java.lang.String ADVANCED_LINK_LOCATOR
- See Also:
- Constant Field Values
LinkBrowser
public LinkBrowser(TinyMce tinyMce)
waitUntilVisible
public void waitUntilVisible()
- Overrides:
waitUntilVisible
in class Dialog
clickInsert
public void clickInsert()
clickCancel
public void clickCancel()
- Description copied from class:
Dialog
- Clicks the 'Cancel' link (anything in the dialog with a "button-panel-cancel-link" class.
Fails if link does not exist.
- Overrides:
clickCancel
in class Dialog
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.
getTextInNoneditableAlias
public java.lang.String getTextInNoneditableAlias()
- Returns:
- the current text in the span that stores noneditable aliases.
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.
waitForQuickSearchResultLength
public void waitForQuickSearchResultLength(int numberOfResults)
selectFromQuickSearch
public void selectFromQuickSearch(java.lang.String name)
selectExactFromQuickSearch
public void selectExactFromQuickSearch(java.lang.String name)
waitForPresentInQuickSearch
public void waitForPresentInQuickSearch(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()
typeLink
public void typeLink(java.lang.String locator,
java.lang.String link)
insertWebLink
public void insertWebLink(java.lang.String alias,
java.lang.String link)
insertAdvancedLink
public void insertAdvancedLink(java.lang.String alias,
java.lang.String link)
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()
isLinkedToImage
public boolean isLinkedToImage(java.lang.String filename)
getBreadcrumbsText
public java.lang.String getBreadcrumbsText()
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)
waitForDataTableVisible
public void waitForDataTableVisible()
waitForDataTableHidden
public void waitForDataTableHidden()
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)
getPanelHeight
public int getPanelHeight(LinkBrowser.Tab tab)
waitForBreadcrumbs
public void waitForBreadcrumbs()
waitForBreadcrumbsHidden
public void waitForBreadcrumbsHidden()
waitForLastBreadcrumb
public void waitForLastBreadcrumb(java.lang.String title)
waitUntilWebLinkUrlFocused
public void waitUntilWebLinkUrlFocused()
Copyright © 2003-2013 Atlassian. All Rights Reserved.