Commit ae424f2e ae424f2ea33f4fbadbe002ae5dc53bb2942fec89 by Mickaël Andrieu

Merge pull request #1022 from mickaelandrieu/master

Added docs for fillLabels() method
2 parents f851aa32 1446eb82
......@@ -983,7 +983,32 @@ are referenced by ``CSS3`` selectors::
'input[name="attachment"]': '/Users/chuck/roundhousekick.doc'
}, true);
});
``fillLabels()``
-------------------------------------------------------------------------------
**Signature:** ``fillLabels(String selector, Object values[, Boolean submit])``
.. versionadded:: 1.1
Fills a form with provided field values using associated label text Fields
are referenced by label content values::
casper.start('http://some.tld/contact.form', function() {
this.fillLabels('form#contact-form', {
Email: 'chuck@norris.com',
Password: 'chuck',
Content: 'Am watching thou',
Check: true,
No: true,
Topic: 'bar',
Multitopic: ['bar', 'car'],
File: fpath,
"1": true,
"3": true,
Strange: "very"
}, true);
});
``fillXPath()``
-------------------------------------------------------------------------------
......