public class ElementMetaDataListener extends QAFWebElementCommandAdapter
Examples:
| Modifier and Type | Field and Description |
|---|---|
static java.util.List<java.lang.String> |
COMMANDS_REQUIRES_SCROLL |
static java.lang.String |
SCROLL
meta-key to specify scroll behavior, possible values:
Always/true - always scroll before commands required scroll
OnFail - retry with scroll on failure for commands required scroll
|
static java.lang.String |
SCROLL_OPTIONS
meta-key to specify scroll options, A value that indicates the type of
the align::
|
static java.lang.String |
SENDKEYS_OPTIONS
meta-key to specify one or more send-keys options, possible values:
click: to specify click before send-keys
clear: to specify clear before send-keys
Examples:
{'sendkeys-options': 'clear'}
{'sendkeys-options': 'click'}
{'sendkeys-options': 'click clear'}
|
static java.lang.String |
TYPE
meta-key for send-keys to specify element type, possible values:
password/encrypted - required to decode before send keys
select - specify this is select (basic support only) with options and
choose option
Examples:
{'type': 'password'}
{'type': 'select'}
|
| Constructor and Description |
|---|
ElementMetaDataListener() |
| Modifier and Type | Method and Description |
|---|---|
void |
beforeCommand(QAFExtendedWebElement element,
CommandTracker commandTracker)
This can be used as intercepter.
|
void |
onFailure(QAFExtendedWebElement element,
CommandTracker commandTracker)
This can be used to propagate exception.
|
afterCommand, execute, executeWithoutLogpublic static final java.lang.String SCROLL
public static final java.lang.String SCROLL_OPTIONS
Examples:
https://developer.mozilla.org/en-US/docs/Web/API/Element/scrollIntoView,
Constant Field Valuespublic static final java.lang.String SENDKEYS_OPTIONS
public static final java.lang.String TYPE
public static final java.util.List<java.lang.String> COMMANDS_REQUIRES_SCROLL
public void beforeCommand(QAFExtendedWebElement element, CommandTracker commandTracker)
QAFWebElementCommandListenerCommandTracker.setResponce(Response)beforeCommand in interface QAFWebElementCommandListenerbeforeCommand in class QAFWebElementCommandAdapterpublic void onFailure(QAFExtendedWebElement element, CommandTracker commandTracker)
QAFWebElementCommandListenerCommandTracker.getStage()onFailure in interface QAFWebElementCommandListeneronFailure in class QAFWebElementCommandAdapterCopyright © 2000 Infostretch Corp.