UNPKG

826 BTypeScriptView Raw
1/// <reference types="q" />
2import * as q from 'q';
3import { WebDriver } from 'selenium-webdriver';
4import { Config } from '../config';
5import { DriverProvider } from './driverProvider';
6export declare class MockExecutor {
7 execute(command: any): any;
8}
9export declare class Mock extends DriverProvider {
10 constructor(config?: Config);
11 /**
12 * An execute function that returns a promise with a test value.
13 */
14 execute(): q.Promise<any>;
15 /**
16 * Configure and launch (if applicable) the object's environment.
17 * @public
18 * @return {q.promise} A promise which will resolve immediately.
19 */
20 protected setupDriverEnv(): q.Promise<any>;
21 /**
22 * Create a new driver.
23 *
24 * @public
25 * @override
26 * @return webdriver instance
27 */
28 getNewDriver(): WebDriver;
29}