-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' of https://github.com/hinthealth/behave
* 'master' of https://github.com/hinthealth/behave: Updated Readme.
- Loading branch information
Showing
1 changed file
with
7 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -15,10 +15,12 @@ Before: | |
$("[for='dob']").val('04/27/87').trigger('input'); | ||
``` | ||
|
||
With Behave!: | ||
` fill('form').with({email: '[email protected]', age: 27, dob: '04/27/87'});` | ||
Now with Behave!: | ||
``` | ||
fill('form').with({email: '[email protected]', age: 27, dob: '04/27/87'}); | ||
``` | ||
|
||
the fill function also takes individual fields, or jQuery elements as input. | ||
You can also fill individual fields, or jQuery elements as input. | ||
``` | ||
fill('myOtherEl').with('new text'); | ||
|
@@ -31,7 +33,8 @@ forms conform to general standards, it will likely find them. It searches for at | |
name, for, placeholder, type, actual text, and others. Fill only looks through element types | ||
that would typically show up in a form ('input', 'select', 'option', 'label', 'textarea', or 'form'). | ||
|
||
** FIND ** | ||
***FIND*** | ||
|
||
Under the hood of "fill" is a robust "find" function. The signature is... | ||
`Behave.find(identifier, [type])` | ||
|
||
|