com.atlassian.jira.webtest.framework.impl.selenium.component
Class SeleniumCommentInput

java.lang.Object
  extended by com.atlassian.jira.webtest.framework.impl.selenium.core.SeleniumContextAware
      extended by com.atlassian.jira.webtest.framework.impl.selenium.core.AbstractSeleniumPageObject
          extended by com.atlassian.jira.webtest.framework.impl.selenium.core.AbstractLocatorBasedPageObject
              extended by com.atlassian.jira.webtest.framework.impl.selenium.component.SeleniumCommentInput
All Implemented Interfaces:
CommentInput, Input, ValueHolder, Localizable, PageObject

public class SeleniumCommentInput
extends AbstractLocatorBasedPageObject
implements CommentInput

Selenium implementation of CommentInput.

Since:
v4.3

Nested Class Summary
 
Nested classes/interfaces inherited from interface com.atlassian.jira.webtest.framework.component.CommentInput
CommentInput.CommentVisibilityDropdown
 
Field Summary
 
Fields inherited from class com.atlassian.jira.webtest.framework.impl.selenium.core.SeleniumContextAware
assertThat, client, context, timeouts
 
Constructor Summary
SeleniumCommentInput(SeleniumLocator locator, SeleniumContext ctx)
           
 
Method Summary
protected  SeleniumLocator detector()
          Main locator of this page object.
 TimedCondition hasWikiRendering()
          Check if this comment input has wiki rendering.
 TimedCondition isEditMode()
          Check if this comment input is in edit-mode.
 TimedCondition isPreviewMode()
          Check if this comment input is in preview-mode.
 Locator locator()
          Locator unambiguously locating this page object.
 CommentInput toggleMode()
          Switch mode of this comment input.
 Input type(com.atlassian.webtest.ui.keys.KeySequence keys)
          Enter given key sequence into this input.
 TimedQuery<String> value()
          Get this component's current value
 CommentInput.CommentVisibilityDropdown visibilityDropdown()
          Return the visibility drop-down of this comment input
 
Methods inherited from class com.atlassian.jira.webtest.framework.impl.selenium.core.AbstractLocatorBasedPageObject
isReady
 
Methods inherited from class com.atlassian.jira.webtest.framework.impl.selenium.core.AbstractSeleniumPageObject
body, conditions, css, forClass, id, jQuery, locatorFor, name, queries, waitFor, xpath
 
Methods inherited from class com.atlassian.jira.webtest.framework.impl.selenium.core.SeleniumContextAware
context
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface com.atlassian.jira.webtest.framework.core.PageObject
context, isReady
 

Constructor Detail

SeleniumCommentInput

public SeleniumCommentInput(SeleniumLocator locator,
                            SeleniumContext ctx)
Method Detail

locator

public Locator locator()
Description copied from interface: Localizable
Locator unambiguously locating this page object.

Specified by:
locator in interface Localizable
Returns:
locator

detector

protected SeleniumLocator detector()
Description copied from class: AbstractLocatorBasedPageObject
Main locator of this page object. Its presence means that this object is ready to be manipulated in the test.

Specified by:
detector in class AbstractLocatorBasedPageObject
Returns:
main locator of this page object

visibilityDropdown

public CommentInput.CommentVisibilityDropdown visibilityDropdown()
Description copied from interface: CommentInput
Return the visibility drop-down of this comment input

Specified by:
visibilityDropdown in interface CommentInput
Returns:
visibility selection dropdown

isEditMode

public TimedCondition isEditMode()
Description copied from interface: CommentInput
Check if this comment input is in edit-mode. If the wiki-rendering is disabled for this comment, this method will always return true condition.

Specified by:
isEditMode in interface CommentInput
Returns:
timed condition verifying if this comment input is in edit-mode

isPreviewMode

public TimedCondition isPreviewMode()
Description copied from interface: CommentInput
Check if this comment input is in preview-mode. If wiki-rendering is disabled for this comment, this method will always return false condition.

Specified by:
isPreviewMode in interface CommentInput
Returns:
timed condition verifying if this comment input is in preview mode
See Also:
CommentInput.hasWikiRendering()

hasWikiRendering

public TimedCondition hasWikiRendering()
Description copied from interface: CommentInput
Check if this comment input has wiki rendering.

Specified by:
hasWikiRendering in interface CommentInput
Returns:
timed condition verifying, if wiki rendering is enabled for this comment input

toggleMode

public CommentInput toggleMode()
Description copied from interface: CommentInput
Switch mode of this comment input. Results of this operation may be queried via CommentInput.isEditMode() and CommentInput.isPreviewMode(). Wiki rendering must be enabled for this operation to succeed,

Specified by:
toggleMode in interface CommentInput
Returns:
this comment input

type

public Input type(com.atlassian.webtest.ui.keys.KeySequence keys)
Description copied from interface: Input
Enter given key sequence into this input.

Specified by:
type in interface Input
Parameters:
keys - key sequence to enter
Returns:
this input

value

public TimedQuery<String> value()
Description copied from interface: ValueHolder
Get this component's current value

Specified by:
value in interface ValueHolder
Returns:
query for the current value of this component


Copyright © 2002-2013 Atlassian. All Rights Reserved.