LoginSignup
3
4

More than 5 years have passed since last update.

Protractor で AngularJS 非依存アプリケーションをテストする為の設定

Last updated at Posted at 2015-04-27

Protractor で AngularJS 非依存アプリケーションをテストする為の設定

解決したいこと

Protractor は デフォルトで AngularJS を使う前提になっている為、AngularJS を使用していないアプリケーションをテストしようとするとエラーになる。

  Message:
    Failed: Error while waiting for Protractor to sync with the page: "angular could not be found on the window"
  Stack:
    Error: Failed: Error while waiting for Protractor to sync with the page: "angular could not be found on the window"

解決策

以下の行を追記する。

browser.ignoreSynchronization = true;

例: beforeEach に追記しておくと楽ちん

describe('Test', function() {

  beforeEach(function() {
    browser.ignoreSynchronization = true;
  });
});
3
4
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
3
4