Skip to content
Toggle navigation
Toggle navigation
This project
Loading...
Sign in
John McEleney
/
casperjs
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Network
Create a new issue
Builds
Commits
Issue Boards
Files
Commits
Network
Compare
Branches
Tags
Commit
1ed48b6d
...
1ed48b6d53773f3aee411cdcf8e9ed8ff7a78d71
authored
2014-08-26 17:13:27 +0200
by
Mickaël Andrieu
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
REFS #948 - Add docs
1 parent
d68f88dc
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
25 additions
and
0 deletions
docs/modules/casper.rst
docs/modules/casper.rst
View file @
1ed48b6
...
...
@@ -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()``
-------------------------------------------------------------------------------
...
...
Please
register
or
sign in
to post a comment