/**@class	A matcher piece that calls `compare` on its element's text.
*/
var TextExtractor = new Class( /** @lends matchers.TextExtractor# */ {
	/** The attribute that should be extracted from the element.
	* If not defined, defaults to using this class' `type` property.
	*
	*@type	{String}
	*/
	attribute: null,

	onElementFound: function(element) {
		element.getText().then(this.compare, this.fail);
	}
});

module.exports = TextExtractor;	// CommonJS export

/**@class	A matcher piece that calls `compare` on its element's text.
*/
var TextExtractor = new Class( /** @lends matchers.TextExtractor# */ {
	/** The attribute that should be extracted from the element.
	* If not defined, defaults to using this class' `type` property.
	*
	*@type	{String}
	*/
	attribute: null,

	onElementFound: function(element) {
		element.text().then(this.compare, this.fail);
	}
});

module.exports = TextExtractor;	// CommonJS export

Update text accessors for WD Pass all tests
Update text accessors for WD
Pass all tests