How to make webstorm recognize protractor 'browser' in a test spec?

 

In my test spec.js, Webstorm marks 'browser' as 'Unresolved variable or type'

I searched this issue, someone said that the library 'angular-protractor' should be download and installed. But there is NO 'angular-protractor' library in the Webstorm download list.

How to make JetBrains webstorm know about `element`, `by` in protractor test spec?

 

 

 

0
2 comments

The typings are bundled with protractor node module, so, if it's installed and included in indexing, d.ts files from node_modules\protractor\built should be available for types resolving. Works fine for me - checked in 2 different projects

0
Avatar
Permanently deleted user

Thanks. It works.

0

Please sign in to leave a comment.