|
||||||||||
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.web.WebFolderElement
public class WebFolderElement
Class to handle a folder web element in a web page. A folder may contain multiple folders, which may be several levels deep. The following actions are available on a folder:
getChild(String)
: Returns the given child folder.getChildren()
: Returns the folder's children.selectFolder(String)
: Selects the given folder. The full folder path must be
specified to access the sub-folders.
Constructor Summary | |
---|---|
WebFolderElement(WebPage page,
WebBrowserElement element,
org.openqa.selenium.By expandBy,
org.openqa.selenium.By expansionBy,
org.openqa.selenium.By containerBy)
|
Method Summary | |
---|---|
void |
expand()
Expand the folder. |
java.util.List<WebFolderElement> |
getChildren()
Returns the folder's children. |
WebFolderElement |
getFolder(java.lang.String folderPath)
Gets the sub-folder for the given path. |
void |
select()
Select the folder. |
WebFolderElement |
selectFolder(java.lang.String folderPath)
Selects the sub-folder for the given path. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public WebFolderElement(WebPage page, WebBrowserElement element, org.openqa.selenium.By expandBy, org.openqa.selenium.By expansionBy, org.openqa.selenium.By containerBy)
Method Detail |
---|
public void expand()
public final java.util.List<WebFolderElement> getChildren()
List
of WebFolderElement
.public WebFolderElement getFolder(java.lang.String folderPath)
For example, "JKE Banking/JKE Enterprise Project/Business Goals" accesses the Business Goals sub-sub-folder. To access the top folder or project folder just enter the folder name, ex. "JKE Banking".
folderPath
- The folder path. Might be a simple name or a fully-qualified
path using '/' character for segment delimiter.
WebFolderElement
or
null
if no folder was not found for the given folder path.public void select()
public WebFolderElement selectFolder(java.lang.String folderPath) throws ScenarioFailedError
For example, "JKE Banking/JKE Enterprise Project/Business Goals" accesses the Business Goals sub-folder. To access the top folder or project folder just enter the folder name, ex. "JKE Banking".
folderPath
- The folder path. Might be a simple name or a fully-qualified
path using '/' character for segment delimiter.
WebFolderElement
.
ScenarioFailedError
- if no folder was not found for the given folder path.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |