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

[Feature] Expose Nightmare.wait() #15

@mousemke

Description

@mousemke

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 );
    }
  }

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions