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
741bf655
...
741bf655cd2588c9744f959d2a7580d8aff043ea
authored
2014-08-26 21:12:57 +0200
by
Mickaël Andrieu
Browse Files
Options
Browse Files
Tag
Download
Plain Diff
Merge pull request #1016 from mickaelandrieu/master
REFS #948 - Add docs
2 parents
d68f88dc
1ed48b6d
Hide 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 @
741bf65
...
...
@@ -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