-
Notifications
You must be signed in to change notification settings - Fork 49
ExtractElementDataFilter
Wiiitek edited this page Mar 9, 2018
·
5 revisions
Extract Element Data Filter allows to extract an element from the html source (collected by Source Collector) by providing an id attribute or a class attribute. Only the extracted source of the element is processed by the comparator.
Module name: extract-element
Resource name: source
Parameter | Value | Description | Mandatory |
---|---|---|---|
elementId |
HTML id | Id for the element to extract | See the note below |
class |
HTML class | Class name for the element to extract | See the note below |
! Note |
---|
One of these parameters is required. Only one parameter (either the elementId attribute or the class attribute) can be provided. If class attribute will be provided AET will extract markup for all elements with given class using JSoup getElementsByClass method |
<?xml version="1.0" encoding="UTF-8" ?>
<suite name="test-suite" company="cognifide" project="project">
<test name="extract-element-test">
<collect>
...
<open/>
...
<source/>
...
</collect>
<compare>
...
<source comparator="source">
<extract-element elementId="login_form"/>
<!-- OR -->
<extract-element class="class_form"/>
</source>
...
</compare>
<urls>
...
</urls>
</test>
...
<reports>
...
</reports>
</suite>
-
How To Use
-
Releases