question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Firefox 59 - Failed: TypeError: cyclic object value

See original GitHub issue

Bug report

  • Protractor Version: 5.3.1
  • Angular Version: 1.6.10
  • Browser(s): Firefox 59
  • Selenium: 3.11.0

When performing functions on a protractor element object I get the following error.

Failed: TypeError: cyclic object value
Build info: version: '3.11.0', revision: 'e59cfb3', time: '2018-03-11T20:33:15.31Z'
System info: host: '3930699ecd58', ip: '172.17.0.9', os.name: 'Linux', os.arch: 'amd64', os.version: '4.9.87-linuxkit-aufs', java.version: '1.8.0_162'
Driver info: driver.version: unknown

So for example if I get an element objet with the following code and perform a click() it throws the error

it('cyclic object value example', function() {
    var obj = element(by.cssContainingText('.some-class button', 'Click me'));
    obj.click();
});

Have been researching on the internet and it seems to be an issue is when JSON.stringify is executed on object with a circular reference. It has been introduced since Firefox 59.

Issue Analytics

  • State:open
  • Created 5 years ago
  • Comments:9

github_iconTop GitHub Comments

3reactions
hico-bstcommented, Sep 7, 2018

It has been fixed in FF 62

2reactions
jerrythimothyjcommented, Jun 21, 2018

Hi, I am facing the same issue:

element(By.$(selector)) is throwing me Failed: TypeError: cyclic object value .

Any updates on this issue?

Read more comments on GitHub >

github_iconTop Results From Across the Web

TypeError: cyclic object value - JavaScript - MDN Web Docs
The JavaScript exception "cyclic object value" occurs when object references were found in JSON. JSON.
Read more >
Protractor Firefox 59 - Failed: TypeError: cyclic object value
We have multiple Protractor tests for our Angular JS app. We wanted to upgrade the Firefox version to 59 using Selenium 3.11.0. ......
Read more >
TypeError: cyclic object value - JavaScript
The JavaScript exception "cyclic object value" occurs when object references were found in JSON. JSON.stringify() doesn't try to solve them and fails ......
Read more >
TypeError: cyclic object value - JavaScript - W3cubDocs
The JavaScript exception "cyclic object value" occurs when object references were found in JSON. JSON.stringify() doesn't try to solve them and ...
Read more >
TypeError: cyclic object value
TypeError : cyclic object value (Firefox) TypeError: Converting circular ... JSON.stringify() doesn't try to solve them and fail accordingly.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found