public class Page extends Object
Modifier and Type | Method and Description |
---|---|
Page |
addAction(String action,
groovy.lang.Closure<Object> func)
adds an action to the page.
|
Element |
addElement(String name,
Object locator)
adds an element to the page.
|
Element |
element(String name)
returns the element for the name specified.
|
Map<String,groovy.lang.Closure<Object>> |
getActionMap()
returns the Map of all action functions
|
Map<String,Element> |
getElementMap()
returns the Map of all elements in the page.
|
String |
getName()
returns the page name.
|
Object |
perform(String action,
Object[] args)
calls the page action.
|
public Page(String name_p)
public String getName()
public Page addAction(String action, groovy.lang.Closure<Object> func) throws MBTException
action
- func
- closure functionMBTException
public Object perform(String action, Object[] args) throws Exception
action
- args
- Exception
public Element addElement(String name, Object locator) throws MBTException
name
- locator
- MBTException
public Element element(String name)
name
- public Map<String,Element> getElementMap()
Copyright TestOptimal, LLC