com.ibm.team.fvt.tests.clm.pages.elements
Class CcmWorkItemComment

java.lang.Object
  extended by com.ibm.team.fvt.tests.web.WebPageElement
      extended by com.ibm.team.fvt.tests.web.WebElementWrapper
          extended by com.ibm.team.fvt.tests.clm.pages.elements.CcmWorkItemComment

public class CcmWorkItemComment
extends com.ibm.team.fvt.tests.web.WebElementWrapper

Class to manage a comment in Work Item web page (CcmWebWorkItemPage).

Following features are accessible on this page:

Following internal features are also defined or specialized by this page:


Constructor Summary
CcmWorkItemComment(com.ibm.team.fvt.tests.web.WebPage page, com.ibm.team.fvt.tests.web.WebBrowserElement element)
           
 
Method Summary
 void collapse()
          Collapse the current comment.
 void expand()
          Expand the current comment.
 java.lang.String getText()
          
 boolean isExpanded()
          Returns whether the current comment is expanded or not.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CcmWorkItemComment

public CcmWorkItemComment(com.ibm.team.fvt.tests.web.WebPage page,
                          com.ibm.team.fvt.tests.web.WebBrowserElement element)
Method Detail

collapse

public void collapse()
Collapse the current comment.

If the comment is already collapsed, then nothing happens.


expand

public void expand()
Expand the current comment.

If the comment is already expanded, then nothing happens.


getText

public java.lang.String getText()

First expand the comment to have the entire text and return the body element text.

Overrides:
getText in class com.ibm.team.fvt.tests.web.WebElementWrapper

isExpanded

public boolean isExpanded()
Returns whether the current comment is expanded or not.

Returns:
true if the comment is expanded, false>/code> otherwise.