The SyntaxError caused by Selenium IDE: JSON.parse encounters an issue with a control character within a string literal

After installing Selenium IDE version 2.9.1, I encountered some errors while trying to use the tool. When starting Selenium IDE and attempting to open recent test cases, an error message was displayed:

An unexpected error occurred. Message: TypeError: this.app is undefined URL: chrome://selenium-ide/content/editor.js, line: 1013, column: 7 Editor.prototype.populateFormatsPopup@chrome://selenium-ide/content/editor.js:1013:7 onpopupshowing@chrome://selenium-ide/content/selenium-ide-sidebar.xul:1:1

In addition, upon opening Selenium IDE, another error message appeared:

An unexpected error occurred. Message: SyntaxError: JSON.parse: bad control character in string literal at line 1, column 1905 of the JSON data URL: chrome://selenium-ide/content/plugin.js, line: 17, column: 22 PluginManager.prototype.load@chrome://selenium-ide/content/plugin.js:17:22 PluginManager@chrome://selenium-ide/content/plugin.js:7:3 Application@chrome://selenium-ide/content/application.js:26:26 Editor@chrome://selenium-ide/content/editor.js:30:14 SidebarEditor@chrome://selenium-ide/content/sidebar-editor.js:22:5 onload@chrome://selenium-ide/content/selenium-ide-sidebar.xul:1:1

System Details:

  • Browser: Firefox 43 Language Hungarian
  • Selenium IDE Version: 2.9.1
  • Operating System: Windows 10*

I have already tried reinstalling the Selenium plugin from this link:

https://addons.mozilla.org/en-US/firefox/addon/selenium-ide/

Furthermore, I removed other Firefox plugins in an attempt to troubleshoot the issue.

If you have any suggestions or solutions to resolve this problem and enable me to use Selenium in Firefox successfully, please share. Thank you!

Answer №1

It appears that there may be an issue with Selenium IDE, which can be found on this link: https://example.com/selenium-ide-issue

A recommended solution is outlined below:

  1. Enter "about:config" into the address bar of Mozilla Firefox.
  2. Adjust the settings to default for [email protected] and extensions.selenium-ide.pluginsData.
  3. Close the browser and relaunch the IDE.

Answer №2

It's possible that the issue you're facing is due to a conflict with a JavaScript framework like mootools.

In my experience,

  1. When I run executeScript on document.title = 'Hello World';
    • it initially functions correctly
  2. However, when I load a webpage using an outdated version of mootools
  3. The executeScript on document.title = 'Hello World';
    • suddenly stops working and displays the error message "Failed: HH:MM:SS JSON.parse is not a function"

Similar questions

If you have not found the answer to your question or you are interested in this topic, then look at other similar questions below or use the search

How do I access HttpOnly cookies in an API request using Express?

Upon user login, a HttpOnly cookie is sent back in the response. https://i.sstatic.net/Rnsib.png However, when attempting to read the cookies during a subsequent API call, there seems to be nothing retrieved. This is how the cookie was created: var sig ...

"Tree panel items in ExtJS 4 are displaying correctly in Firefox, but are mysteriously missing from

While working on my Tree Panel project, I encountered an issue with the display of items in different browsers. The items show up correctly in Firefox but appear empty in Chromium. How is this possible? Here's the JSON data sent to the server: {"tex ...

Tips for detecting the existence of scrollbar on a webpage and retrieving its coordinates

I am working on a web page where I need to dynamically retrieve the scroll coordinates of the page. If a page has multiple scrolls, I should be able to get the respective scroll coordinates for each. The functionality needs to adjust based on the specifi ...

Submitting Multi-part forms using JQuery/Ajax and Spring Rest API

Recently, I started exploring JQuery and decided to experiment with asynchronous multipart form uploading. The form includes various data fields along with a file type. On the server side (using Spring), I have set up the code as follows: @RequestMapping ...

"Utilizing JQuery's addClass, removeClass, and appendTo functions to

Having a bit of an issue trying to implement a functionality where options inside a div can be clicked and moved to another div, and if they are clicked again in the other div, they will return back. Here is the code snippet: $(".selectable").bind(&ap ...

Obtain the access token generated from JSON within a Spring Boot application

@RequestMapping(value = "/check", method = RequestMethod.GET) public ResponseEntity<Product> createProducts() throws JsonProcessingException { String reqUrl = "http://localhost:8080/home"; HttpHeaders heade ...

Error: Unable to execute map() function on commands.options? while configuring slash commands

discord js v13.3.1 I have configured my bot to update and deploy slash commands using a specific command called "deploy". The structure of the deploy command is as follows: module.exports = { name: "deploy", description: "deploys sl ...

working with python lists in json format

Seeking assistance with manipulating a Json list. I have data in json format displayed as: [ "fruits", "apple", "{\n \"color\": \"red\",\n \"harvest\" ...

Encountering weathers.map is not a function error while using React.js with OpenWeatherMap integration

Struggling with React.js for a college project and need some help. The error message I keep encountering is: weathers.map not a function I know it's probably something simple, but for the life of me, I can't figure it out! My project structure f ...

What is the best way to increase numerical values within strings in jQuery or JavaScript?

I am facing an issue where I need the last digit in a string to increment, for example, from ABC123-DE45-000 to ABC123-DE45-001. I tried implementing code to achieve this but the increment happens from 000 to 1 instead of adding leading zeros as required. ...

The variable unexpectedly transforms into an undefined value within the callback of an Angular $resource method

Building a function in Node to query my mongoDB database and return results into an object is proving to be more challenging than expected. The issue lies in setting up the object correctly. Here's a snippet of the code: The Node Function for MongoDB ...

Does the use of 'window.location.replace' in Chrome cause a session to be destroyed in PHP when redirecting to a specified page?

Apologies if the question seems a bit convoluted, but let me explain the scenario. Here is an example of an Ajax function I am working with: $.ajax({ url:"../controllers/xx_register.php", type:"POST", data:send, success: function(resp ...

The search box in Datatables is experiencing a glitch where it does not register any

Snippet to initialize datatable: jQuery('#table1').dataTable({ "scrollY": "200px", "scrollCollapse": true, "paging": false, "aaSorting": [], "oSearch": { "bSmart": false } }); The filter works perfectly when the table is first i ...

Interact with a Bootstrap dropdown menu using Selenium in Python

Currently facing an issue while trying to select an item from a bootstrap dropdown using Selenium. I am able to click the dropdown to show the options, but unable to click on any option. Various attempts have resulted in the following error: TypeError: ...

The Firebase "once" event does not resolve as a promise

According to the official Firebase documentation located at here, it states: Return Value Returns a Promise that can optionally be used instead of the successCallback and failureCallback to handle success and failure. However, in my specific code example ...

Exploring the world of nested routes in Angular and how to efficiently

Hey there! I'm brand new to all of this and still trying to wrap my head around a few things, so any guidance you can offer would be awesome! :) Overview I've got a bunch of projects (/projects) Clicking on a project takes me to a detailed sum ...

Converting XML to JSON in PHP: "The string provided could not be parsed as XML"

My xml file is quite large, with around 420K rows, but it's valid. I'm attempting to convert it into a json format using the following code: $xml_str = file_get_contents('jobs.xml'); $xml = new SimpleXMLElement($xml_str); $json = json_ ...

Looking for an image that spans the entire height of the container

I need help with positioning an img inside a div container that has a background color. I want the image to overlay on top of the div, extending beyond its height without causing any scroll bars. Here is a fiddle related to this issue: http://jsfiddle.net ...

Difficulty encountered when positioning a container using BootStrap 4

As a newcomer to the world of web development, I encountered an issue while trying to align a container on my webpage. Despite my efforts to center the container using (line 30), the page seems to update but there is no visible change. Can anyone help me ...

The index.html file is failing to load/render when using app.js

I am currently in the process of creating a to-do list using an older tutorial. The app.js file seems to be functioning properly, however, when I try to run it locally, all I see is a blank page instead of my HTML content. Here is the code found in the ap ...