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

browser.fill().fill() not a function #1176

Closed
phillytan opened this issue Oct 5, 2018 · 6 comments
Closed

browser.fill().fill() not a function #1176

phillytan opened this issue Oct 5, 2018 · 6 comments

Comments

@phillytan
Copy link

phillytan commented Oct 5, 2018

Before upgrading to Zombie V6.1.3, the browser.fill().fill() will work. However upon upgrading to Zombie V6.1.3, the test fails and returns as not a function.

Node Version: v10.11.0
macOS Version: Mojave (10.14)

@phillytan phillytan changed the title Undefined in browser.fill().fill() browser.fill().fill() not a function Oct 5, 2018
@jatinseth2007
Copy link

jatinseth2007 commented Oct 8, 2018

I am facing the same error

@TheFive
Copy link

TheFive commented Oct 27, 2018

i have split my calls from
browser.fill().click()
to
browser.fill()
browser.click()

fill now returns a promise (as i have understood the update docu) and not a browser.

@MiloATH
Copy link
Contributor

MiloATH commented Aug 31, 2019

This is intended behavior (#1054). Consider something along the lines of the following instead:

browser.fill('email', '[email protected]')
  .then(() => browser.fill('password', 'eat-the-living'))
  .then(() => browser.pressButton('Sign Me Up!', done));

This issue can be closed.

@assaf
Copy link
Owner

assaf commented Aug 31, 2019

👍

@assaf assaf closed this as completed Aug 31, 2019
@avimar
Copy link

avimar commented Apr 23, 2020

Can you please update the quick-start on the "The Bite" please? I google it and found this right away, so it's wasn't too bad. After that change, it seemed to work fine!
http://zombie.js.org/

It lists:

    before(function(done) {
      browser
        .fill('email',    '[email protected]')
        .fill('password', 'eat-the-living')
        .pressButton('Sign Me Up!', done);
    });

@Roxar7
Copy link

Roxar7 commented Oct 10, 2021

It looks like the documentation in http://zombie.js.org/ is outdated and still lists:

before(function(done) {
      browser
        .fill('email',    '[email protected]')
        .fill('password', 'eat-the-living')
        .pressButton('Sign Me Up!', done);
    });

Can somebody help to update it ?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

7 participants