command_definition.d.ts 533 B

1234567891011
  1. import { promise as wdpromise } from 'selenium-webdriver';
  2. import { Extender } from './extender';
  3. export declare class CommandDefinition<T> {
  4. name: string;
  5. params: string[];
  6. method: 'GET' | 'POST' | 'DELETE' | 'PUT';
  7. path: string;
  8. private preprocessParams;
  9. constructor(name: string, params: string[], method: 'GET' | 'POST' | 'DELETE' | 'PUT', path: string, preprocessParams?: (...args: any[]) => any[]);
  10. compile<T>(extender: Extender, silentFailure: boolean): (...args: any[]) => wdpromise.Promise<T>;
  11. }