2016-08-03 18:00:07 -04:00
|
|
|
/**
|
|
|
|
* @license
|
|
|
|
* Copyright Google Inc. All Rights Reserved.
|
|
|
|
*
|
|
|
|
* Use of this source code is governed by an MIT-style license that can be
|
|
|
|
* found in the LICENSE file at https://angular.io/license
|
|
|
|
*/
|
|
|
|
|
|
|
|
|
2015-05-27 17:57:54 -04:00
|
|
|
|
|
|
|
/**
|
|
|
|
* A WebDriverAdapter bridges API differences between different WebDriver clients,
|
|
|
|
* e.g. JS vs Dart Async vs Dart Sync webdriver.
|
|
|
|
* Needs one implementation for every supported WebDriver client.
|
|
|
|
*/
|
2015-09-25 17:48:17 -04:00
|
|
|
export abstract class WebDriverAdapter {
|
2016-08-25 03:50:16 -04:00
|
|
|
waitFor(callback: Function): Promise<any> { throw new Error('NYI'); }
|
|
|
|
executeScript(script: string): Promise<any> { throw new Error('NYI'); }
|
|
|
|
executeAsyncScript(script: string): Promise<any> { throw new Error('NYI'); }
|
2016-09-09 13:37:47 -04:00
|
|
|
capabilities(): Promise<{[key: string]: any}> { throw new Error('NYI'); }
|
2016-08-25 03:50:16 -04:00
|
|
|
logs(type: string): Promise<any[]> { throw new Error('NYI'); }
|
2015-05-27 17:57:54 -04:00
|
|
|
}
|