|
||||||||||
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.WebSelectElement
public class WebSelectElement
Class to handle select element.
Select
Constructor Summary | |
---|---|
WebSelectElement(WebElementWrapper parent,
org.openqa.selenium.By selectBy)
|
|
WebSelectElement(WebPage page,
org.openqa.selenium.By selectBy)
|
Method Summary | |
---|---|
java.util.List<WebBrowserElement> |
getAllElements()
Return the select elements list. |
WebBrowserElement |
getSelectedElement()
Return the selected element. |
void |
select(java.lang.String option)
Select the corresponding option using the given text. |
void |
select(java.lang.String option,
int pattern)
Select the corresponding option using the given text. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public WebSelectElement(WebPage page, org.openqa.selenium.By selectBy)
public WebSelectElement(WebElementWrapper parent, org.openqa.selenium.By selectBy)
Method Detail |
---|
public java.util.List<WebBrowserElement> getAllElements()
List
of WebBrowserElement
.public WebBrowserElement getSelectedElement()
WebBrowserElement
.public void select(java.lang.String option)
option
- The option to select in the list.public void select(java.lang.String option, int pattern)
option
- The option to select in the list.pattern
- The pattern used for matching text. Currently supported are:
#EQUALS_PATTERN
#STARTS_WITH_PATTERN
#ENDS_WITH_PATTERN
#CONTAINS_PATTERN
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |