nightwatch
Version:
Easy to use Node.js based end-to-end testing solution for web applications using the W3C WebDriver API.
26 lines (22 loc) • 704 B
TypeScript
import {CommandInstance} from './index';
export interface CustomCommandInstance extends CommandInstance {}
export interface NightwatchCustomCommandsModel {
/**
* Define a custom command
*
* @example
* class LogMessage implements NightwatchCustomCommandsModel {
* command() {
*
* return Promise.resolve();
* }
* }
*
* @see https://nightwatchjs.org/guide/extending-nightwatch/adding-custom-commands.html#define-a-custom-command
*/
command: (...args: any[]) => unknown | Promise<unknown>;
}
/**
* @see https://nightwatchjs.org/guide/extending-nightwatch/adding-custom-commands.html#define-a-custom-command
*/
export interface NightwatchCustomCommands {}