2016-08-03 15:32:26 -04:00
|
|
|
import {BaseException, WrappedException} from '@angular/facade/src/exceptions';
|
|
|
|
import {Map} from '@angular/facade/src/collection';
|
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-06-02 20:30:40 -04:00
|
|
|
static bindTo(delegateToken): any[] {
|
|
|
|
return [{provide: WebDriverAdapter, useFactory: (delegate) => delegate, deps: [delegateToken]}];
|
2015-05-27 17:57:54 -04:00
|
|
|
}
|
|
|
|
|
|
|
|
waitFor(callback: Function): Promise<any> { throw new BaseException('NYI'); }
|
|
|
|
executeScript(script: string): Promise<any> { throw new BaseException('NYI'); }
|
2015-06-08 16:51:10 -04:00
|
|
|
executeAsyncScript(script: string): Promise<any> { throw new BaseException('NYI'); }
|
2015-05-27 17:57:54 -04:00
|
|
|
capabilities(): Promise<Map<string, any>> { throw new BaseException('NYI'); }
|
2015-08-28 14:29:19 -04:00
|
|
|
logs(type: string): Promise<any[]> { throw new BaseException('NYI'); }
|
2015-05-27 17:57:54 -04:00
|
|
|
}
|