Qiita Teams that are logged in
You are not logged in to any team

Log in to Qiita Team
Community
OrganizationEventAdvent CalendarQiitadon (β)
Service
Qiita JobsQiita ZineQiita Blog
4
Help us understand the problem. What are the problem?

More than 5 years have passed since last update.

Organization

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

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;
  });
});
Why not register and get more from Qiita?
  1. We will deliver articles that match you
    By following users and tags, you can catch up information on technical fields that you are interested in as a whole
  2. you can read useful information later efficiently
    By "stocking" the articles you like, you can search right away
4
Help us understand the problem. What are the problem?