Commit c165386b c165386bcf66f193398fb39679e356ea1cddadff by Andy Gardner

Adding a test to check that text can be fetched from the value attribute

1 parent bb706acd
......@@ -9,6 +9,15 @@ casper.test.begin('fetchText() basic tests', 1, function(test) {
});
});
casper.test.begin('fetchText() basic tests', 1, function(test) {
casper.start('tests/site/index.html', function() {
test.assertEquals(this.fetchText('input[name="dummy_name"]'), 'dummy_value',
'Casper.fetchText() can retrieve text contents from an input element');
}).run(function() {
test.done();
});
});
casper.test.begin('fetchText() handles HTML entities', 1, function(test) {
casper.start().then(function() {
this.setContent('<html><body>Voil&agrave;</body></html>');
......