Protactor error, Unexpected token )

后端 未结 1 629
既然无缘
既然无缘 2021-02-07 18:54

I was about start learning protractor and following the simple tutorial in there http://www.protractortest.org/#/tutorial

but unfortunately getting weird error after run

1条回答
  •  无人共我
    2021-02-07 19:11

    Protractor upgraded to WebDriver 2.48.2 with their release of version 3.0.0. This version of WebDriver is not compatible with Node.js versions < 4.

    From CHANGELOG.md in the Protractor project:

    (18e1f71) chore(webdriver): upgrade Protractor to webdriver 2.48.2

    BREAKING CHANGE:
    1) Users will no longer be able to use node versions < 4.
    2) There are significant changes to the control flow, and tests may need to be modified to be compliant with the new control flow. See Changes

    Downgrading Protractor to 2.5.1 or upgrading Node.js to >= v4.0.0 should solve your problem. See here for more info on breaking changes in Protractor v3.0.0.

    0 讨论(0)
提交回复
热议问题