nightwatch
Version:
Easy to use Node.js based end-to-end testing solution for web applications using the W3C WebDriver API.
22 lines (20 loc) • 598 B
TypeScript
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 {}