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

[Feature] Expose Nightmare.wait() #15

Open
mousemke opened this issue Sep 21, 2017 · 0 comments
Open

[Feature] Expose Nightmare.wait() #15

mousemke opened this issue Sep 21, 2017 · 0 comments

Comments

@mousemke
Copy link

mousemke#4

What needs to get done?

  • the wait method from nightmare should be exposed.

Why does it need to get done?

before(function*() {
  yield niffy.goto('/', function*(nightmare) {
    yield nightmare.wait(3000);
  });
});

it seems odd that you would have to go through another call just to use wait through a callback. this exposes it to the niffy object

before(function*() {
  yield niffy.wait(3000);
});

How do I do it?

simply exposing it should do the trick

  /**
   * exposes the nightmare wait fubction
   *
   * @param {String} target selector of ms
   */
  * wait( target ){
      this.nightmare.wait( target );
    }
  }
This was referenced Sep 21, 2017
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

1 participant