Commit 1ed48b6d 1ed48b6d53773f3aee411cdcf8e9ed8ff7a78d71 by Mickaël Andrieu

REFS #948 - Add docs

1 parent d68f88dc
...@@ -984,6 +984,31 @@ are referenced by ``CSS3`` selectors:: ...@@ -984,6 +984,31 @@ are referenced by ``CSS3`` selectors::
984 }, true); 984 }, true);
985 }); 985 });
986 986
987 ``fillLabels())``
988 -------------------------------------------------------------------------------
989
990 **Signature:** ``fillLabels(String selector, Object values[, Boolean submit])``
991
992 .. versionadded:: 1.1
993
994 Fills a form with provided field values using associated label text Fields
995 are referenced by label content values::
996
997 casper.start('http://some.tld/contact.form', function() {
998 this.fillLabels('fform#contact-form', {
999 Email: 'chuck@norris.com',
1000 Password: 'chuck',
1001 Content: 'Am watching thou',
1002 Check: true,
1003 No: true,
1004 Topic: 'bar',
1005 Multitopic: ['bar', 'car'],
1006 File: fpath,
1007 "1": true,
1008 "3": true,
1009 Strange: "very"
1010 }, true);
1011 });
987 1012
988 ``fillXPath()`` 1013 ``fillXPath()``
989 ------------------------------------------------------------------------------- 1014 -------------------------------------------------------------------------------
......