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

前端 未结 4 674
隐瞒了意图╮
隐瞒了意图╮ 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:17

    I am also facing the same problem.

    According to my research, this happened from ChromeDriver version 75.0.3770.8. https://sites.google.com/a/chromium.org/chromedriver/downloads

    ChromeDriver 75.0.3770.8

    Supports Chrome version 75

    The most noticeable change is ChromeDriver now runs in W3C standard compliant mode by default.

    This means, they have enabled W3C standard in the chrome driver. To fix this, either the circular reference error need to be fixed in code or disable W3C. For some disabling W3C worked with the solution from github issue: https://github.com/angular/protractor/issues/5261

    capabilities: {
      'goog:chromeOptions': {
      w3c: false
      }
    }
    

    Unfortunately, this solution is not working for me. You can try this as a temporary solution.

    0 讨论(0)
  • 2021-01-20 10:32

    As per Issue 2995: javascript error: circular reference with ChromeDriver Its fixed in Chrome/ChromeDriver version 76.0.3809.68 . Please try with 76.0.3809.68.

    Change logs :

    ChromeDriver 76.0.3809.68
    Supports Chrome version 76
    
    Includes the following changes over version 76.0.3809.25:
    Fixed a bug in detecting circular reference in JavaScript objects
    

    Edit

    There is issue with 'webdriver-manager' its not downloading the latest build of v76.0.0 . You will have to install it yourself issue - 408

    npm install chromedriver --chromedriver_version=LATEST
    
    0 讨论(0)
  • 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',
    
    0 讨论(0)
  • 2021-01-20 10:44

    Looks like someone has fixed this in webdriver-manager but it hasn't been released yet. I had the same issue and was able to fix it by applying this diff to my local version of webdriver-manager in node_modules: https://github.com/angular/webdriver-manager/pull/413/commits/6a95aa4187825d1293bda7c802f39257699095fc

    Then updating webdriver downloaded the latest version and everything worked.

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