strictClick.ts 488 B

123456789101112131415161718
  1. /**
  2. * A non-class-based custom-command in Nightwatch. The command name is the filename.
  3. *
  4. * Usage:
  5. * browser.strictClick(selector)
  6. *
  7. * This command is not used yet used in any of the examples.
  8. *
  9. * For more information on working with custom-commands see:
  10. * https://nightwatchjs.org/guide/extending-nightwatch/adding-custom-commands.html
  11. *
  12. */
  13. module.exports = {
  14. command: function (selector: string) {
  15. return this.waitForElementVisible(selector).click(selector)
  16. }
  17. }