0

I have never used protractor in Angular 2. Can anyone tell how can I implement protractor in Angular 2 with webpack?

Rohan Fating
  • 2,135
  • 15
  • 24
Aman Jain
  • 2,294
  • 1
  • 16
  • 22

1 Answers1

1

You can test Angular 2 applications with Protractor (starting from Protractor 2.5.0).

For Protractor 5.0.0+, you don't have to do anything specific, Protractor will auto-detect the Angular version used in the application under test.

For Protractor >= 2.5.0 and <= 4.0.14, you would only need to add useAllAngular2AppRoots: true to your config. Here is a sample.


Note that several built-in Protractor matchers would not yet work with Angular2, see:

There is also that Protractor+Angular2 problem in Firefox (still unresolved), see:

Please refer following link

How to use Protractor with Angular 2?

Rohan Fating
  • 2,135
  • 15
  • 24