This repository has been archived by the owner on Dec 16, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 517
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1196 from MiloATH/fill
Update README for change to fill method.
- Loading branch information
Showing
1 changed file
with
9 additions
and
10 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 |
---|---|---|
|
@@ -37,10 +37,9 @@ describe('User visits signup page', function() { | |
describe('submits form', function() { | ||
|
||
before(function(done) { | ||
browser | ||
.fill('email', '[email protected]') | ||
.fill('password', 'eat-the-living') | ||
.pressButton('Sign Me Up!', done); | ||
browser.fill('email', '[email protected]') | ||
.then(() => browser.fill('password', 'eat-the-living')) | ||
.then(() => browser.pressButton('Sign Me Up!', done)); | ||
}); | ||
|
||
it('should be successful', function() { | ||
|
@@ -76,10 +75,9 @@ describe('User visits signup page', function() { | |
describe('submits form', function() { | ||
|
||
before(function() { | ||
browser | ||
.fill('email', '[email protected]') | ||
.fill('password', 'eat-the-living'); | ||
return browser.pressButton('Sign Me Up!'); | ||
return browser.fill('email', '[email protected]') | ||
.then(() => browser.fill('password', 'eat-the-living')) | ||
.then(() => browser.pressButton('Sign Me Up!')); | ||
}); | ||
|
||
it('should be successful', function() { | ||
|
@@ -214,9 +212,10 @@ Find and return an input field (`INPUT`, `TEXTAREA` or `SELECT`) based on a CSS | |
field name (its `name` attribute) or the text value of a label associated with that field | ||
(case sensitive, but ignores leading/trailing spaces). | ||
|
||
#### browser.fill(selector, value, callback) | ||
#### browser.fill(selector, value, [callback]) | ||
|
||
Fill in an input field or text area with the provided value. | ||
Fill in an input field or text area with the provided value. If called without a callback, | ||
returns a promise. | ||
|
||
#### browser.fire(selector, eventName, [callback]) | ||
|
||
|