/** * @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 */ import {Map} from '@angular/facade/src/collection'; import {BaseException, WrappedException} from '@angular/facade/src/exceptions'; /** * 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. */ export abstract class WebDriverAdapter { static bindTo(delegateToken): any[] { return [{provide: WebDriverAdapter, useFactory: (delegate) => delegate, deps: [delegateToken]}]; } waitFor(callback: Function): Promise { throw new BaseException('NYI'); } executeScript(script: string): Promise { throw new BaseException('NYI'); } executeAsyncScript(script: string): Promise { throw new BaseException('NYI'); } capabilities(): Promise> { throw new BaseException('NYI'); } logs(type: string): Promise { throw new BaseException('NYI'); } }