Uploaded image for project: 'ZABBIX BUGS AND ISSUES'
  1. ZABBIX BUGS AND ISSUES
  2. ZBX-24632

Firefox usage for synthetic tests

XMLWordPrintable

    • S24-W28/29
    • 2

      Can not use synthetic tests with Firefox. For example default JS code:

      var browser = new Browser(Browser.firefoxOptions());
      
      try {
      	browser.navigate("https://zabbix.com");
      	browser.collectPerfEntries();
      }
      finally {
      	return JSON.stringify(browser.getResult());
      }
      

      result is:

      {"duration":3.0171115398406982,"error":{"http_status":500,"code":"javascript error","message":"cannot collect performance data: toJSON() failed with: TypeError: 'toJSON' called on an object that does not implement interface PerformanceNavigationTiming."}}
      

      replacing getResult with getRawPerfEntries fixes the issue.

            dgoloscapov Dmitrijs Goloscapovs
            dotneft Alexey Pustovalov
            Team A
            Votes:
            3 Vote for this issue
            Watchers:
            7 Start watching this issue

              Created:
              Updated:
              Resolved: