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

前端 未结 4 1649
既然无缘
既然无缘 2021-01-04 18:09

Right now in my Protractor test spec, Webstorm is complaining that all my element and by are \"Unresolvable type or element\"

4条回答
  •  梦谈多话
    2021-01-04 18:16

    Have you enabled the TypeScript library for angular-protractor?

    1. Go to Project Settings > Javascript > Libraries
    2. Click Download then select TypeScript community stubs
    3. Find angular-protractor then download and install

    Hope that helps! I know it's not native support but next best thing :-)

提交回复
热议问题