Protractor: Firefox 59 - Failed: TypeError: cyclic object value

Created on 3 May 2018  路  9Comments  路  Source: angular/protractor

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.

Most helpful comment

It has been fixed in FF 62

All 9 comments

Hi,

This has been raised in selenium-webdriver (https://github.com/SeleniumHQ/selenium/issues/5621) and it looks like it is being tracked in GeckoDriver (https://bugzilla.mozilla.org/show_bug.cgi?id=1447977)

Hi, I am facing the same issue:

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

Any updates on this issue?

Hi, I'm having the same issue using Firefox 61.0.1, Protractor 5.3.2
I'm not able to get elements using protractor locators like by.model, by.buttonText.
This error can be reproduced with the basic example on https://www.protractortest.org.

Message: Failed: TypeError: cyclic object value Build info: version: '3.13.0', revision: '2f0d292', time: '2018-06-25T15:32:19.891Z'

Hmm, Is this defect already reported and taken care of? I have encoutered this problem also.
Tests on chrome work fine, and all fail on FF.

I am using the latest FF version and it's a show stopper for my script execution :(
Has anyone tried the version below 59?

It has been fixed in FF 62

Thanks @hico-bst lemme have a try

It seems to be fixed in FF 62

I am observing this issue with Polymer web elements in FF 65. Can anyone help in getting me out of this .. is the issue reported had been working for someone .. Kindly let me know.

org.openqa.selenium.JavascriptException: Cyclic object value
Build info: version: '3.4.0', revision: 'unknown', time: 'unknown'
System info: host: ' ', ip: '5', os.name: 'Windows 10', os.arch: 'amd64', os.version: '10.0', java.version: '1.8.0_172'
Driver info: org.openqa.selenium.firefox.FirefoxDriver
Capabilities [{moz:profile=C:\Users\slolla\AppData\Local\Temp\rust_mozprofile.8qqq7nFrowBm, rotatable=false, moz:geckodriverVersion=0.24.0, timeouts={implicit=0.0, pageLoad=300000.0, script=30000.0}, pageLoadStrategy=normal, unhandledPromptBehavior=dismiss and notify, strictFileInteractability=false, moz:headless=false, platform=ANY, moz:accessibilityChecks=false, moz:useNonSpecCompliantPointerOrigin=false, acceptInsecureCerts=false, browserVersion=65.0, moz:shutdownTimeout=60000.0, platformVersion=10.0, moz:processID=24400.0, browserName=firefox, javascriptEnabled=true, platformName=windows, setWindowRect=true, moz:webdriverClick=true}]
Session ID: 6a7ce7ce-2b9c-4a63-8f47-fac589583294

Was this page helpful?
0 / 5 - 0 ratings