Chromedriver 76 breaks my test suite “javascript error: circular reference”

前端 未结 4 676
隐瞒了意图╮
隐瞒了意图╮ 2021-01-20 10:14

I now get \"javascript error: circular reference(Session info: chrome=76.0.3809.100)\" whenever I try and click on any element on my company\'s webapp.

This is code

4条回答
  •  傲寒
    傲寒 (楼主)
    2021-01-20 10:36

    As mentioned by others there is a issue with 'webdriver-manager' its not downloading the latest build of v76.0.0 . even-though you specify the exact version by giving webdriver-manager update --versions.chrome 76.0.3809.68 it always points to the chrome 76.0.3809.12. only name is changed but the file has chrome 76.0.3809.12 version only i think

    and as mentioned by Rahul L

    quick fix : install chromedriver through npm - v76.0.1

    https://www.npmjs.com/package/chromedriver

    but one catch here is protractor always points to the default chromedriver that comes along with the webdriver-manager update ,hence just adding the package alone is not enough ,we have to add some values in the config file to over come this senario , we have to overwrite the chromedriver reference path through the config file with these values

    export.Config = {
          DirectConnet:true,
          chromeDriver: process.cwd()+'/node_modules/chromedriver/lib/chromedriver/chromedriver.exe',
    

提交回复
热议问题