|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.ibm.team.fvt.tests.web.WebPageElement
com.ibm.team.fvt.tests.web.WebElementWrapper
com.ibm.team.fvt.tests.clm.pages.elements.RmArtifactSidebarSection
public class RmArtifactSidebarSection
Class to manage a sidebar section in an RM artifact web page.
Following features are accessible in this page:
collapse()
: Collapse the current sidebar section.expand()
: Expand the current sidebar section.getHeader()
: Return the section header.getItemsCount()
: Get the number of items displayed in the sidebar section.getLinkTypeItemElement(String, String)
: Get the item for the given
text in the given link type of the current sidebar section.getSectionName()
: Return the sidebar section name.getTitle()
: Return the section title (ie. name + count of displayed element).Following internal features are also defined or specialized by this page:
getPage()
: Return the web page from which the section belongs to.
Constructor Summary | |
---|---|
RmArtifactSidebarSection(RmWebListPage page,
com.ibm.team.fvt.tests.web.WebBrowserElement element)
|
Method Summary | |
---|---|
void |
collapse()
Collapse the current sidebar section. |
boolean |
equals(java.lang.Object o)
|
void |
expand()
Expand the current sidebar section. |
com.ibm.team.fvt.tests.web.WebExpandableElement |
getHeader()
Return the section header. |
int |
getItemsCount()
Get the number of items displayed in the sidebar section. |
com.ibm.team.fvt.tests.web.WebBrowserElement |
getLinkTypeItemElement(java.lang.String itemText,
java.lang.String linkType)
Get the item for the given text in the given link type of the current sidebar section. |
java.lang.String |
getSectionName()
Return the sidebar section name. |
java.lang.String |
getTitle()
Return the section title (ie. |
int |
hashCode()
|
boolean |
setLinkTypeFilter(java.lang.String linkType)
Set the filter for the given link type. |
Methods inherited from class com.ibm.team.fvt.tests.web.WebElementWrapper |
---|
getText |
Methods inherited from class java.lang.Object |
---|
getClass, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public RmArtifactSidebarSection(RmWebListPage page, com.ibm.team.fvt.tests.web.WebBrowserElement element)
Method Detail |
---|
public void collapse()
If the section is already expanded, then nothing happens.
public boolean equals(java.lang.Object o)
equals
in class java.lang.Object
public void expand()
If the section is already expanded, then nothing happens.
public com.ibm.team.fvt.tests.web.WebExpandableElement getHeader()
WebExpandableElement
.public int getItemsCount()
This number is deduced from the section title by extracting the number in parenthesis, e.g. if the sidebar header is displaying "Links (3)" then, the section displays 3 items.
int
.public com.ibm.team.fvt.tests.web.WebBrowserElement getLinkTypeItemElement(java.lang.String itemText, java.lang.String linkType)
itemText
- The text of the item to search forlinkType
- The type of link for the searched item. If null
then the search will occur in all section items.
WebBrowserElement
or null
if not found.public java.lang.String getSectionName()
String
.public java.lang.String getTitle()
String
.public int hashCode()
hashCode
in class java.lang.Object
public boolean setLinkTypeFilter(java.lang.String linkType)
linkType
- The link type to filter on
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |