Charles
  • Introduction
    • πŸ‘‹Welcome
  • Getting started
    • Quickstart guide
  • Opening actions
    • Popup, side bar and modal options
    • Trigger the extension with a floating button
    • Open the extension automatically on specific URLs
  • Key features
    • Features overview
    • Open website on install / uninstall
    • Get tab info
    • Get text selected by user
    • Get element text
    • Get element HTML
    • Set element inner text
    • Set element inner HTML
    • Open URL in sidebar modal
    • Open URL in fullscreen modal
    • Copy text to clipboard
    • Populate an input field
    • Simulate mouse click on an element
    • Capture screenshot
    • Open URL in new tab
    • Show native alert
    • Set an extension badge color and text
    • Change extension icon
    • Close extension
    • Save to Chrome storage
    • Injecting custom javascript
  • Extending Charles
    • Extending Charles with your own Javascript
  • Publishing to the Chrome Webstore
    • Prepare extension for submission
    • Registering as a Chrome Webstore developer
    • Publishing your extension
  • FAQ
    • Common questions
  • Troubleshooting
    • Charles Data Elements do not receive any values
    • Cannot log in (cookie issues)
    • Support
Powered by GitBook
On this page
  1. Troubleshooting

Charles Data Elements do not receive any values

If a Charles Data element (e.g. Charles Tab Infos, Charles Element Text, Charles Element HTML, etc.) does not get any values, the main issue usually is that the Charles Bubble Element is not placed correctly or the CSS selectors have been wrongly defined. Please ensure:

  • The plugin elements (Charles Element Text and Charles Element HTML) are visible on the page (i.e. marked as visible on page load)

  • The plugin elements are not in any popup or hidden element. They must be visible on the page

  • You have chosen appropriate CSS selectors for the elements EG when you run:

console.log(document.querySelector("YOURSELECTOR") ? "Element exists on the page." : "Element does not exist on the page.");

it returns Element exists on the page.

Just copy the above code and paste it in the Chrome console: Chrome β†’ View β†’ Developer β†’ Developer Tools (or right click on any element on the page and select inspect), then select the console tab and past the text. Don’t forget to adjust YOURSELECTOR with your selector.

PreviousCommon questionsNextCannot log in (cookie issues)

Last updated 5 months ago