|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.ibm.team.fvt.tests.web.WebWindowFactory
public class WebWindowFactory
Factory to create instances of WebWindow
.
Constructor Summary | |
---|---|
WebWindowFactory()
|
Method Summary | ||
---|---|---|
static
|
createInstance(WebPage page,
org.openqa.selenium.By locator,
java.lang.Class<W> windowClass)
Create an instance of the given web window class located in the given page. |
|
static
|
createInstance(WebPage page,
org.openqa.selenium.By locator,
java.lang.Class<W> windowClass,
java.lang.String... data)
Create an instance of the given web window class located in the given page. |
|
static
|
createInstance(WebPage page,
java.lang.Class<W> windowClass)
Create an instance of the given web window class located in the given page. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public WebWindowFactory()
Method Detail |
---|
public static <W extends WebWindow> W createInstance(WebPage page, java.lang.Class<W> windowClass) throws java.lang.Exception
When using this factory method, the framework assumes that the given
class has a constructor with a single WebPage
or one of its direct
subclass parameter.
page
- The page from which the window will belong towindowClass
- The framework class of the window
java.lang.Exception
- Thrown if typically the expected class constructor does
not exist.public static <W extends WebWindow> W createInstance(WebPage page, org.openqa.selenium.By locator, java.lang.Class<W> windowClass) throws java.lang.Exception
When using this factory method, the framework assumes that the given class has a constructor with following parameters:
WebPage
or one of its direct subclassBy
page
- The page from which the window will belong tolocator
- The mechanism to find the web window element when openedwindowClass
- The framework class of the window
java.lang.Exception
- Thrown if typically the expected class constructor does
not exist.public static <W extends WebWindow> W createInstance(WebPage page, org.openqa.selenium.By locator, java.lang.Class<W> windowClass, java.lang.String... data) throws java.lang.Exception
When using this factory method, the framework assumes that the given class has a constructor with following parameters:
WebPage
or one of its direct subclassBy
String
...
page
- The page from which the window will belong tolocator
- The mechanism to find the web window element when openedwindowClass
- The framework class of the windowdata
- Additional data provided when creating the instance as a list
of strings
java.lang.Exception
- Thrown if typically the expected class constructor does
not exist.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |