| |
|
| java.lang.Object org.apache.jmeter.testelement.AbstractTestElement org.apache.jmeter.extractor.XPathExtractor
XPathExtractor | public class XPathExtractor extends AbstractTestElement implements PostProcessor,Serializable(Code) | | Extracts text from (X)HTML response using XPath query language
Example XPath queries:
- /html/head/title
- extracts Title from HTML response
- //form[@name='countryForm']//select[@name='country']/option[text()='Czech Republic'])/@value
- extracts value attribute of option element that match text 'Czech Republic'
inside of select element with name attribute 'country' inside of
form with name attribute 'countryForm'
|
isTolerant | public boolean isTolerant()(Code) | | |
process | public void process()(Code) | | Do the job - extract value from (X)HTML response using XPath Query.
Return value as variable defined by REFNAME. Returns DEFAULT value
if not found.
|
setDefaultValue | public void setDefaultValue(String val)(Code) | | |
setNameSpace | public void setNameSpace(boolean val)(Code) | | |
setTolerant | public void setTolerant(boolean val)(Code) | | |
useNameSpace | public boolean useNameSpace()(Code) | | |
|
|
|