Skip to content

Commit

Permalink
Merge branch 'master' of https://github.com/hinthealth/behave
Browse files Browse the repository at this point in the history
* 'master' of https://github.com/hinthealth/behave:
  Updated Readme.
  • Loading branch information
blakewest committed Sep 30, 2014
2 parents 18c7944 + 62dce72 commit 14a3580
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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');
Expand All @@ -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])`

Expand Down

0 comments on commit 14a3580

Please sign in to comment.