Commit 1ed48b6d 1ed48b6d53773f3aee411cdcf8e9ed8ff7a78d71 by Mickaël Andrieu

REFS #948 - Add docs

1 parent d68f88dc
......@@ -984,6 +984,31 @@ are referenced by ``CSS3`` selectors::
}, 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('fform#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()``
-------------------------------------------------------------------------------
......