session not created exception for chrome in Protractor

前端 未结 6 1920
轮回少年
轮回少年 2020-12-11 03:29

I get below error when try to run Protractor test against chrome.

My conf.ts

import {Config} from \'protractor\'

export let config: Config = {
    f         


        
6条回答
  •  夕颜
    夕颜 (楼主)
    2020-12-11 04:06

    You can change the version of chromedriver downloaded by webdriver-manager by altering Protractor's config.json file...

    1. Edit Protractor's config file: node_modules/protractor/config.json
    2. Change the chrome driver version to whatever you need. eg. "chromedriver": "2.24".
    3. Run webdriver-manager update.

    from the error you posted, protractor is not using the latest chrome driver version.In stack trace it is displaying chrome driver version as 2.21.

提交回复
热议问题