Broken text: placeholders, mojibake and missing translations

Logs text the site shows without filling it in: message placeholders ({0}, {name}, %s), template code ({{name}}, ${name}), missing translations (??key??), JavaScript values ([object Object], NaN, undefined), broken character encoding (pÃ¥ for på, �) and HTML entities shown as text (&).

Nothing to set up: it's on by default, so a plain elsetest --url staging.example.com already uses it. The options below are for fine-tuning.

This is Elsetest's BrokenText plugin. It runs as the instance CheckBrokenText. Like every plugin, it gets its turn at random: in each step of a test, one plugin instance is picked, weighted by its frequency. Raise it to check more often.

Options

Set them for one instance with --plugin alias=<alias> key=value, or for every instance of the plugin with --plugin name=BrokenText key=value. In a config file, each --plugin is an object in "plugins", e.g.:

{
  "plugins": [
    {
      "alias": "CheckBrokenText",
      "ignoreSelector": ".api-docs"
    }
  ]
}

A selector says which elements of the page an option is about, e.g. #chat-widget or .cookie-banner button: see Selectors.

frequency

--plugin alias=CheckBrokenText frequency=<level>

How often the plugin runs compared to the others.

One of off, lowest, low, normal, high, highest. Default: normal. The default instances set their own (below).

ignoreSelector

--plugin alias=CheckBrokenText ignoreSelector=<selector>

Don't check the text of elements matching this CSS selector, or inside them. The site can also mark the elements in its HTML with the attribute data-elsetest-broken-text-ignore.

Default instances

AliasThe options it sets
CheckBrokenTextfrequency=low

Other plugins

Accessibility · Ai · Click · Cluster · History · Login · MutationCluster · Overlap · Scroll · SelectOption · Spelling · Type · Validate

This page is generated from the help texts of Elsetest 0.9.8. The same help is in the program: elsetest --help.