public class Element extends Object
| Modifier and Type | Method and Description |
|---|---|
Element |
addAction(String action,
groovy.lang.Closure<Object> func)
adds an action to the element.
|
Map<String,groovy.lang.Closure<Object>> |
getActionMap()
returns the Map of all actions for the element.
|
Object |
getLocator() |
String |
getName()
returns the element name.
|
Object |
perform(String action,
Object[] args)
calls the element action.
|
boolean |
waitUntil(String action_p,
long timeoutMillis_p,
Object... params_p)
wait until the action specified evaluates to boolean true or does
not generate runtime error (like element not found) or until
times out.
|
public Object getLocator()
public Element addAction(String action, groovy.lang.Closure<Object> func)
action - func - closure functionpublic String getName()
public Object perform(String action, Object[] args) throws Exception
action - args - Exceptionpublic Map<String,groovy.lang.Closure<Object>> getActionMap()
public boolean waitUntil(String action_p, long timeoutMillis_p, Object... params_p) throws Exception
action_p - action code of this elementtimeoutMillis_p - timeout in millisecondsparams_p - additional parameters for the actionExceptionCopyright TestOptimal, LLC