UNPKG

870 BTypeScriptView Raw
1/// <reference types="q" />
2import * as q from 'q';
3import { promise as wdpromise, WebDriver } from 'selenium-webdriver';
4import { Config } from '../config';
5import { DriverProvider } from './driverProvider';
6export declare class AttachSession extends DriverProvider {
7 constructor(config: Config);
8 /**
9 * Configure and launch (if applicable) the object's environment.
10 * @return {q.promise} A promise which will resolve when the environment is
11 * ready to test.
12 */
13 protected setupDriverEnv(): q.Promise<any>;
14 /**
15 * Getting a new driver by attaching an existing session.
16 *
17 * @public
18 * @return {WebDriver} webdriver instance
19 */
20 getNewDriver(): WebDriver;
21 /**
22 * Maintains the existing session and does not quit the driver.
23 *
24 * @public
25 */
26 quitDriver(): wdpromise.Promise<void>;
27}