com.atlassian.confluence.selenium.client
Class TinyMce

java.lang.Object
  extended by com.atlassian.confluence.selenium.client.TinyMce

public class TinyMce
extends java.lang.Object


Nested Class Summary
static class TinyMce.Format
           
static class TinyMce.SimpleToolbarButton
           
 
Constructor Summary
TinyMce(ConfluenceSeleniumClient client)
           
 
Method Summary
 void clickHorizontalRuler()
           
 InsertCharacterPopup clickInsertCharacter()
           
 void clickInsertColAfter()
           
 void clickInsertColBefore()
           
 EmoticonPickerPopup clickInsertEmoticon()
           
 void clickInsertRowAfter()
           
 void clickInsertRowBefore()
           
 InsertTablePopup clickInsertTable()
           
 ColorPickerPopup clickMoreColors()
           
 void clickSelectedColor()
           
 void clickToolbarButton(TinyMce.SimpleToolbarButton button)
           
 java.lang.String getFirstMatchingNodeText(java.lang.String selector)
          Retrieve the text of the first node that matches the given selector.
 int getNumberOfCols()
           
 int getNumberOfRows()
           
 java.lang.String getSelectorPresentScript(java.lang.String selector)
          Returns a javascript function that checks for the presence of an element with given jquery selector in the TinyMCE editor.
 java.lang.String getSelectorScript(java.lang.String selector)
          Returns a javascript function that checks for the presence of an element with given jquery selector in the TinyMCE editor.
 void hideFullScreen()
          Returns to the normal editor from fullscreen mode and resets the active frame.
 boolean isToolbarButtonEnabled(TinyMce.SimpleToolbarButton button)
           
 void pressEnter()
           
 void selectEditorFrame()
          Selects the TinyMCE iframe.
 void selectEmptyFirstParagraph()
           
 void selectFirstElementWithSelector(java.lang.String selector)
          Select the first element matching the given selector.
 void selectFirstParagraph()
           
 void selectFormat(TinyMce.Format format)
           
 void selectFullscreenFrame()
          Selects the TinyMCE fullscreen iframe.
 void selectMainFrame()
          Selects the main/top frame for Confluence.
 void selectTextColor(java.lang.String rgbColor)
           
 void setContent(java.lang.String content)
           
 void showFullScreen()
          Clicks the fullscreen toolbar icon in the TinyMCE editor.
 void type(java.lang.String content)
          Only works for non-IE tests.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TinyMce

public TinyMce(ConfluenceSeleniumClient client)
Method Detail

selectEditorFrame

public void selectEditorFrame()
Selects the TinyMCE iframe. You can then use Selenium assert methods normally. Use selectMainFrame() to reselect the main outer frame.


selectFullscreenFrame

public void selectFullscreenFrame()
Selects the TinyMCE fullscreen iframe. You can then use Selenium assert methods normally. Use selectMainFrame() to reselect the main outer frame.


selectMainFrame

public void selectMainFrame()
Selects the main/top frame for Confluence.


showFullScreen

public void showFullScreen()
Clicks the fullscreen toolbar icon in the TinyMCE editor. It also selects the fullscreen editor frame. Be sure to select the main frame again (or use hideFullScreen()) in a finally block.


hideFullScreen

public void hideFullScreen()
Returns to the normal editor from fullscreen mode and resets the active frame.


selectFormat

public void selectFormat(TinyMce.Format format)

isToolbarButtonEnabled

public boolean isToolbarButtonEnabled(TinyMce.SimpleToolbarButton button)

clickToolbarButton

public void clickToolbarButton(TinyMce.SimpleToolbarButton button)

clickHorizontalRuler

public void clickHorizontalRuler()

clickInsertTable

public InsertTablePopup clickInsertTable()

clickInsertRowBefore

public void clickInsertRowBefore()

clickInsertRowAfter

public void clickInsertRowAfter()

clickInsertColBefore

public void clickInsertColBefore()

clickInsertColAfter

public void clickInsertColAfter()

clickInsertEmoticon

public EmoticonPickerPopup clickInsertEmoticon()

clickInsertCharacter

public InsertCharacterPopup clickInsertCharacter()

clickSelectedColor

public void clickSelectedColor()

selectTextColor

public void selectTextColor(java.lang.String rgbColor)

clickMoreColors

public ColorPickerPopup clickMoreColors()

getNumberOfRows

public int getNumberOfRows()

getNumberOfCols

public int getNumberOfCols()

setContent

public void setContent(java.lang.String content)

type

public void type(java.lang.String content)
Only works for non-IE tests. Also, it's a free period. I mean, period doesn't work. http://jira.openqa.org/browse/SEL-521


selectFirstElementWithSelector

public void selectFirstElementWithSelector(java.lang.String selector)
Select the first element matching the given selector.

Parameters:
selector - see tiny_mce_src.DOMUtils.select

selectEmptyFirstParagraph

public void selectEmptyFirstParagraph()

selectFirstParagraph

public void selectFirstParagraph()

pressEnter

public void pressEnter()

getSelectorPresentScript

public java.lang.String getSelectorPresentScript(java.lang.String selector)
Returns a javascript function that checks for the presence of an element with given jquery selector in the TinyMCE editor.


getSelectorScript

public java.lang.String getSelectorScript(java.lang.String selector)
Returns a javascript function that checks for the presence of an element with given jquery selector in the TinyMCE editor.


getFirstMatchingNodeText

public java.lang.String getFirstMatchingNodeText(java.lang.String selector)
Retrieve the text of the first node that matches the given selector.



Copyright © 2003-2008 Atlassian Pty Ltd. All Rights Reserved.