click on element is not performed due to "javascript error: circular reference" with chromedriver 76

308 views
Skip to first unread message

Serhii Sinina

unread,
Jul 2, 2019, 7:06:33 AM7/2/19
to ChromeDriver Users
Hi all. I am using 
Chromedriver 76.0.3809.25 
Chrome 76.0.3809.46
and my click on element fails with the error:

Request: POST /wd/hub/session/fc0f5d9a85671b180c21dfc3a1717b36/element 
 - data:  {"using":"css selector","value":"#mmenu-1 [data-menu-name=\"settings\"]"} 
 - headers:  {"Content-Type":"application/json; charset=utf-8","Content-Length":73}
INFO Response 200 POST /wd/hub/session/fc0f5d9a85671b180c21dfc3a1717b36/element (17ms) {
  sessionId: 'fc0f5d9a85671b180c21dfc3a1717b36',
  status: 0,
  value: { ELEMENT: '0.5967692591666944-4' }
}
INFO Request: POST /wd/hub/session/fc0f5d9a85671b180c21dfc3a1717b36/element/0.5967692591666944-4/click 
 - data:   
 - headers:  {"Content-Length":0}
INFO Response 200 POST /wd/hub/session/fc0f5d9a85671b180c21dfc3a1717b36/element/0.5967692591666944-4/click (32ms) {
  sessionId: 'fc0f5d9a85671b180c21dfc3a1717b36',
  status: 17,
  value: {
    message: 'javascript error: circular reference\n  (Session info: ' +
      'chrome=76.0.3809.46)\n  (Driver info: ' +
      'chromedriver=76.0.3809.25 ' +
      '(a0c95f440512e06df1c9c206f2d79cc20be18bb1-refs/branch-heads/3809@{#271}),platform=Mac ' +
      'OS X 10.14.4 x86_64)'
  }
}
LOG     → Completed command click (53 ms)

In chromedriver logs you can see the response "value": "circular reference"
and then error  ClickElement ERROR javascript error: circular reference
 Part of chromedriver logs:
[1562063191.494][DEBUG]: DevTools WebSocket Command: Runtime.evaluate (id=143) F5E5BDD5CE06E7E327633E853F1D0462 {
   "expression": "(function() { // Copyright (c) 2012 The Chromium Authors. All rights reserved.\n// Use of this source code is governed by a BSD-style license that can be\n// found in the LICENSE file.\n\n/**\n * Enum f...",
   "returnByValue": true
}
[1562063191.496][DEBUG]: DevTools WebSocket Response: Runtime.evaluate (id=143) F5E5BDD5CE06E7E327633E853F1D0462 {
   "result": {
      "type": "object",
      "value": {
         "status": 0,
         "value": "li"
      }
   }
}
[1562063191.496][DEBUG]: DevTools WebSocket Command: Runtime.evaluate (id=144) F5E5BDD5CE06E7E327633E853F1D0462 {
   "expression": "(function() { // Copyright (c) 2012 The Chromium Authors. All rights reserved.\n// Use of this source code is governed by a BSD-style license that can be\n// found in the LICENSE file.\n\n/**\n * Enum f...",
   "returnByValue": true
}
[1562063191.497][DEBUG]: DevTools WebSocket Response: Runtime.evaluate (id=144) F5E5BDD5CE06E7E327633E853F1D0462 {
   "result": {
      "type": "object",
      "value": {
         "status": 0,
         "value": "li"
      }
   }
}
[1562063191.498][DEBUG]: DevTools WebSocket Command: Runtime.evaluate (id=145) F5E5BDD5CE06E7E327633E853F1D0462 {
   "expression": "(function() { // Copyright (c) 2012 The Chromium Authors. All rights reserved.\n// Use of this source code is governed by a BSD-style license that can be\n// found in the LICENSE file.\n\n/**\n * Enum f...",
   "returnByValue": true
}
[1562063191.505][DEBUG]: DevTools WebSocket Response: Runtime.evaluate (id=145) F5E5BDD5CE06E7E327633E853F1D0462 {
   "result": {
      "type": "object",
      "value": {
         "status": 0,
         "value": true
      }
   }
}
[1562063191.505][DEBUG]: DevTools WebSocket Command: Runtime.evaluate (id=146) F5E5BDD5CE06E7E327633E853F1D0462 {
   "expression": "(function() { // Copyright (c) 2012 The Chromium Authors. All rights reserved.\n// Use of this source code is governed by a BSD-style license that can be\n// found in the LICENSE file.\n\n/**\n * Enum f...",
   "returnByValue": true
}
[1562063191.508][DEBUG]: DevTools WebSocket Response: Runtime.evaluate (id=146) F5E5BDD5CE06E7E327633E853F1D0462 {
   "result": {
      "type": "object",
      "value": {
         "status": 0,
         "value": {
            "height": 18,
            "left": 0,
            "top": 0,
            "width": 32.578125
         }
      }
   }
}
[1562063191.509][DEBUG]: DevTools WebSocket Command: Runtime.evaluate (id=147) F5E5BDD5CE06E7E327633E853F1D0462 {
   "expression": "(function() { // Copyright (c) 2012 The Chromium Authors. All rights reserved.\n// Use of this source code is governed by a BSD-style license that can be\n// found in the LICENSE file.\n\n/**\n * Enum f...",
   "returnByValue": true
}
[1562063191.515][DEBUG]: DevTools WebSocket Response: Runtime.evaluate (id=147) F5E5BDD5CE06E7E327633E853F1D0462 {
   "result": {
      "type": "object",
      "value": {
         "status": 17,
         "value": "circular reference"
      }
   }
}
[1562064916.299][DEBUG]: DevTools WebSocket Command: Runtime.evaluate (id=148) BA52F5014857243330CDE4CDFF1D46DA {
   "expression": "1"
}
[1562064916.300][DEBUG]: DevTools WebSocket Response: Runtime.evaluate (id=148) BA52F5014857243330CDE4CDFF1D46DA {
   "result": {
      "description": "1",
      "type": "number",
      "value": 1
   }
}
[1562064916.300][INFO]: Waiting for pending navigations...
[1562064916.300][DEBUG]: DevTools WebSocket Command: Runtime.evaluate (id=149) BA52F5014857243330CDE4CDFF1D46DA {
   "expression": "1"
}
[1562064916.301][DEBUG]: DevTools WebSocket Response: Runtime.evaluate (id=149) BA52F5014857243330CDE4CDFF1D46DA {
   "result": {
      "description": "1",
      "type": "number",
      "value": 1
   }
}
[1562064916.301][INFO]: Done waiting for pending navigations. Status: ok
[1562064916.301][INFO]: [75113b660ea79e0747e021b0491701e8] RESPONSE ClickElement ERROR javascript error: circular reference
  (Session info: chrome=76.0.3809.46)


At the same time Chrome 76.0.3809.46 with chromedriver 75.0.3770.90 works well.
Part of chromedriver logs: 
[1562064661.432][DEBUG]: DevTools WebSocket Response: Runtime.evaluate (id=144) D42A5B9CD8FA0B04682584A6DC8D15E9 {
   "result": {
      "type": "object",
      "value": {
         "status": 0,
         "value": "li"
      }
   }
}
[1562064661.433][DEBUG]: DevTools WebSocket Command: Runtime.evaluate (id=145) D42A5B9CD8FA0B04682584A6DC8D15E9 {
   "expression": "(function() { // Copyright (c) 2012 The Chromium Authors. All rights reserved.\n// Use of this source code is governed by a BSD-style license that can be\n// found in the LICENSE file.\n\n/**\n * Enum f...",
   "returnByValue": true
}
[1562064661.442][DEBUG]: DevTools WebSocket Response: Runtime.evaluate (id=145) D42A5B9CD8FA0B04682584A6DC8D15E9 {
   "result": {
      "type": "object",
      "value": {
         "status": 0,
         "value": true
      }
   }
}
[1562064661.442][DEBUG]: DevTools WebSocket Command: Runtime.evaluate (id=146) D42A5B9CD8FA0B04682584A6DC8D15E9 {
   "expression": "(function() { // Copyright (c) 2012 The Chromium Authors. All rights reserved.\n// Use of this source code is governed by a BSD-style license that can be\n// found in the LICENSE file.\n\n/**\n * Enum f...",
   "returnByValue": true
}
[1562064661.445][DEBUG]: DevTools WebSocket Response: Runtime.evaluate (id=146) D42A5B9CD8FA0B04682584A6DC8D15E9 {
   "result": {
      "type": "object",
      "value": {
         "status": 0,
         "value": {
            "height": 18,
            "left": 0,
            "top": 0,
            "width": 32.578125
         }
      }
   }
}
[1562064661.446][DEBUG]: DevTools WebSocket Command: Runtime.evaluate (id=147) D42A5B9CD8FA0B04682584A6DC8D15E9 {
   "expression": "(function() { // Copyright (c) 2012 The Chromium Authors. All rights reserved.\n// Use of this source code is governed by a BSD-style license that can be\n// found in the LICENSE file.\n\n/**\n * Enum f...",
   "returnByValue": true
}
[1562064661.454][DEBUG]: DevTools WebSocket Response: Runtime.evaluate (id=147) D42A5B9CD8FA0B04682584A6DC8D15E9 {
   "result": {
      "type": "object",
      "value": {
         "status": 0,
         "value": {
            "ceil": {

            },
            "clone": {

            },
            "floor": {

            },
            "round": {

            },
            "scale": {

            },
            "toString": {

            },
            "translate": {

            },
            "x": 231.078125,
            "y": 13
         }
      }
   }
}

Did somebody face this issue? Please help.

d...@dan-gee.co.uk

unread,
Jul 2, 2019, 8:07:14 AM7/2/19
to ChromeDriver Users
Hi,

I'm seeing the same.
ChromeDriver 76.0.3809.25
Chrome 76.0.3809.46

I've created a minimal repro and in my case isolated it to our usage of MicrosoftAjax.js (from within WebForms):
https://gist.github.com/dgee2/a92947dacd1b9da567d8d452da705ccf

I am receiving similar logs as Serhii.

I assume this is likely to be related to issue 2745.

Thanks in advance,
Daniel

d...@dan-gee.co.uk

unread,
Jul 3, 2019, 5:01:14 AM7/3/19
to ChromeDriver Users
I have raised an issue with attached C# repro program, minimal html and log file: https://bugs.chromium.org/p/chromedriver/issues/detail?id=2995

alexander...@gmail.com

unread,
Jul 22, 2019, 2:09:40 AM7/22/19
to ChromeDriver Users
Having similar issue here too.

John Chen

unread,
Jul 23, 2019, 4:43:20 PM7/23/19
to alexander...@gmail.com, ChromeDriver Users
The issue has been fixed in ChromeDriver 76.0.3809.68. Please download it and give it a try. Sorry about the inconvenience.

Thanks,
John

--
You received this message because you are subscribed to the Google Groups "ChromeDriver Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to chromedriver-us...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/chromedriver-users/5bf207d6-09b5-4c31-bf36-d37f5d79de48%40googlegroups.com.
Reply all
Reply to author
Forward
0 new messages