Back to all steps

No console errors

Assert that no JS console errors (console.error or uncaught exceptions) happened. Tracking starts at the first occurrence of this step in the scenario.
Usage example

Check that the page JS console has no errors: console.error() calls and unhandled exceptions.

No fields required.

Important: the error collector is attached to the page on the first call of this step in the scenario — so place it after navigation and the required actions, not at the very beginning. Errors before the first assertNoConsoleErrors are not tracked.

When it fails: the console has at least one error since the step was first mentioned. The report shows the first error (up to 300 characters).