I have never used protractor in Angular 2. Can anyone tell how can I implement protractor in Angular 2 with webpack?
Asked
Active
Viewed 157 times
0
-
Possible duplicate of [How to use Protractor with Angular 2?](https://stackoverflow.com/questions/33541103/how-to-use-protractor-with-angular-2) – mxr7350 Sep 04 '17 at 09:33
-
http://www.protractortest.org/#/tutorial – Alex Beugnet Sep 04 '17 at 09:33
1 Answers
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

Rohan Fating
- 2,135
- 15
- 24