angular/modules/benchpress/src/web_driver_adapter.ts
2015-05-29 14:02:58 -07:00

22 lines
907 B
TypeScript

import {bind} from 'angular2/di';
import {Promise} from 'angular2/src/facade/async';
import {BaseException, ABSTRACT} from 'angular2/src/facade/lang';
import {List, Map} from 'angular2/src/facade/collection';
/**
* 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.
*/
@ABSTRACT()
export class WebDriverAdapter {
static bindTo(delegateToken) {
return [bind(WebDriverAdapter).toFactory((delegate) => delegate, [delegateToken])];
}
waitFor(callback: Function): Promise<any> { throw new BaseException('NYI'); }
executeScript(script: string): Promise<any> { throw new BaseException('NYI'); }
capabilities(): Promise<Map<string, any>> { throw new BaseException('NYI'); }
logs(type: string): Promise<List<any>> { throw new BaseException('NYI'); }
}