Browser tests are scenarios executed by Datadog on your web applications. They run at configurable periodic intervals from multiple locations around the world, and from multiple devices. These checks verify both that your applications are up and responding to requests, and that any conditions defined in your scenarios are met.
Define the configuration of your browser test.
<KEY>:<VALUE>format to filter on a
<VALUE>for a given
<KEY>in the Synthetics page.
Choose a Check frequency between “1 run per 5 minute interval” to “1 run per week”:
A notification is sent if at least one step of the browser test scenario fails. To configure your notifications:
Use the actions available in the upper left corner to enrich your scenario:
Note: Your last browser test step must be an Assertion, otherwise there is nothing to check.
Once you have finished your Scenario, click on Save and Launch Test.
Assertions allow you to check if an element, a content, or some text is available in the current page:
||Asserts that an element (such as a specific
||Makes sure that a specific element is located or not on the current page.|
||Asserts that some specific text is present on the current page.|
||Asserts that some specific text is NOT present on the current page.|
||This takes the URL of the current page, and asserts whether a specific value (
The navigation action allow you to:
This browser test step isn’t added through an actual hovering mechanism (otherwise each element you are hovering would be added as a step) but using a dedicated action with a click.
After selecting the Hover action, click on the element you want to choose to create a new step.
To define a variable, enter a capitalized name then choose its type between:
Select an element content: this type allows you to create a variable out of a
div, etc. content by extracting the text of this element.
||Generates a numeric string with n digits.|
||Generates an alphabetic string with n letters.|
||Generates an alphanumeric string with n characters.|
Once created, use your variable to set an input text on a form or search bar. Use the little hand on your variable box to create an input step:
You can also use your variables in some assertions, including:
To use your variables in one of your assertions, hit Use Variable and select the variable you want to use: