Skip to content
This repository has been archived by the owner on Dec 16, 2023. It is now read-only.

Commit

Permalink
Merge pull request #1196 from MiloATH/fill
Browse files Browse the repository at this point in the history
Update README for change to fill method.
  • Loading branch information
assaf authored Aug 18, 2019
2 parents 72e365e + 85537b3 commit 991ad55
Showing 1 changed file with 9 additions and 10 deletions.
19 changes: 9 additions & 10 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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() {
Expand Down Expand Up @@ -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() {
Expand Down Expand Up @@ -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])

Expand Down

0 comments on commit 991ad55

Please sign in to comment.