public class XPath2Extractor extends AbstractScopedTestElement implements PostProcessor, Serializable
Modifier and Type | Field and Description |
---|---|
static String |
DEFAULT_VALUE_AS_STRING |
COMMENTS, ENABLED, GUI_CLASS, NAME, TEST_CLASS
Constructor and Description |
---|
XPath2Extractor() |
Modifier and Type | Method and Description |
---|---|
String |
getDefaultValue() |
boolean |
getFragment()
Should we return fragment as text, rather than text of fragment?
|
int |
getMatchNumber()
Return which Match to use.
|
String |
getMatchNumberAsString()
Return which Match to use.
|
String |
getNamespaces() |
String |
getRefName() |
String |
getXPathQuery() |
void |
process()
Do the job - extract value from (X)HTML response using XPath Query.
|
void |
setDefaultValue(String val) |
void |
setFragment(boolean selected)
Should we return fragment as text, rather than text of fragment?
|
void |
setMatchNumber(int matchNumber)
Set which Match to use.
|
void |
setMatchNumber(String matchNumber)
Set which Match to use.
|
void |
setNamespaces(String namespaces) |
void |
setRefName(String refName) |
void |
setXPathQuery(String val) |
fetchScope, getSampleList, getScopeName, getVariableName, isScopeAll, isScopeChildren, isScopeParent, isScopeVariable, isScopeVariable, setScopeAll, setScopeChildren, setScopeParent, setScopeVariable
addPropertiesValues, addProperty, addProperty, addTestElement, canRemove, clear, clearTemporary, clearTestElementChildren, clone, emptyTemporary, equals, getComment, getName, getProperty, getPropertyAsBoolean, getPropertyAsBoolean, getPropertyAsDouble, getPropertyAsFloat, getPropertyAsInt, getPropertyAsInt, getPropertyAsLong, getPropertyAsLong, getPropertyAsString, getPropertyAsString, getSearchableTokens, getThreadContext, getThreadName, hashCode, isEnabled, isRunningVersion, isTemporary, logProperties, mergeIn, propertyIterator, recoverRunningVersion, removeProperty, setComment, setEnabled, setName, setProperty, setProperty, setProperty, setProperty, setProperty, setProperty, setProperty, setProperty, setProperty, setRunningVersion, setTemporary, setThreadContext, setThreadName, traverse, traverseCollection, traverseMap, traverseProperty
finalize, getClass, notify, notifyAll, toString, wait, wait, wait
removed
public static final String DEFAULT_VALUE_AS_STRING
public void process()
process
in interface PostProcessor
public void setXPathQuery(String val)
public String getXPathQuery()
public void setRefName(String refName)
public String getRefName()
public void setDefaultValue(String val)
public String getDefaultValue()
public boolean getFragment()
public void setFragment(boolean selected)
selected
- true to return fragment.public void setMatchNumber(int matchNumber)
0
, which is interpreted as meaning random.matchNumber
- The number of the match to be usedpublic void setMatchNumber(String matchNumber)
0
, which is interpreted as meaning random.matchNumber
- The number of the match to be usedpublic int getMatchNumber()
0
, which is interpreted as meaning random.public String getMatchNumberAsString()
0
, which is interpreted as meaning random.public void setNamespaces(String namespaces)
public String getNamespaces()
Copyright © 1998-2019 Apache Software Foundation. All Rights Reserved.