When testing logged in pages, there might be cases in which the authentication is not successful. This article lists the common reasons for form authentication failure and explains how to fix them.
If Calibre cannot find the form on the page, the test will either fail or result in the form URL being monitored instead of the logged in page. The Authentication Log on the Snapshot Overview report will display an error and list selectors which weren’t found, to help with setting up authentication successfully:
To ensure authentication succeeds, use form and input selectors with high specificity, such as id or name.
✅ Recommended | 🚫 Not recommended |
---|---|
Selectors with high level of specificity, such as:
| General selectors that might return multiple matches, such as:
|
For Calibre to successfully navigate HTML forms, form elements must meet the following prerequisites:
Calibre searches for a specified Submit selector first. If the selector is not found or not provided, the Test Agents will fall back to looking for valid HTML markup to submit the form and begin monitoring. A valid submission button should have one of the following characteristics:
Non-semantic markup and multiple elements fulfilling the above requirements might cause failed tests. Calibre scans your Sites for submission buttons in the following order: