public class ElementMetaDataListener extends QAFWebElementCommandAdapter
Examples:
Modifier and Type | Field and Description |
---|---|
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, executeWithoutLog
public 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 void beforeCommand(QAFExtendedWebElement element, CommandTracker commandTracker)
QAFWebElementCommandListener
CommandTracker.setResponce(Response)
beforeCommand
in interface QAFWebElementCommandListener
beforeCommand
in class QAFWebElementCommandAdapter
public void onFailure(QAFExtendedWebElement element, CommandTracker commandTracker)
QAFWebElementCommandListener
CommandTracker.getStage()
onFailure
in interface QAFWebElementCommandListener
onFailure
in class QAFWebElementCommandAdapter
Copyright © 2000 Infostretch Corp.