Commit 1446eb82 1446eb821a1591c70f7132b42bc3d296192ff06e by Mickaël Andrieu

Added docs for fillLabels() method

1 parent f851aa32
......@@ -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()``
-------------------------------------------------------------------------------
......