Browser Test
A browser test is a test in Datadog Synthetic Monitoring that drives a real browser, periodically replays a recorded sequence of operations, and checks whether the screen reaches the expected state. Unlike an API test, which looks at responses, it checks all the way to finding and clicking elements on the screen.
Overview
A browser test is synthetic monitoring that periodically replays a continuous series of operations, such as searching and then opening a detail page from the result list, exactly as the steps were recorded. Monitoring that looks only at server responses cannot catch failures where a button on the screen cannot be clicked, or where a script fails to load and you cannot proceed to the next screen. If users report "I can't log in" while your monitoring stayed quiet, what to revisit is how your user flows are covered. Conversely, if tests keep failing just because you changed some wording or the layout slightly, you work on how elements are located and how steps wait. Even when the complaint is the same "the tests can't be trusted," the place to fix splits in two.
Synthetic monitoring that traces user flows in a real browser
A browser test is a test that drives a real browser from a Datadog-managed location or from your own Private Location, operates the screen with the recorded steps, and finally checks whether the expected state was reached. You can choose the browser and device size, and set the frequency anywhere from every 1 minute to once a week (as of October 2026; Source: Browser Testing). The difference from an API test, which checks the response to a single request, is summarized in the article on creating API tests. What a browser test catches are failures that happen on the user's side even while the server responds normally, such as a button that cannot be clicked or being unable to proceed to the screen after login.
The settings that take effect differ between recording and running
The creation flow is to define the details and save, record the steps by operating the screen with the Chrome extension Datadog Record Test, then save and send it to run.
- Decide the starting URL / browsers and devices / locations / frequency
- Go to the recording screen with Save & Edit Recording
- Record operations with the extension, and add missing steps by hand
- Finally place assertions and Save and Launch Test
A common stumbling point is that the Request Options in the advanced settings (headers / cookies / HTTP authentication, and so on) take effect only at run time and not while recording. If you need that state during recording too, create the same state yourself on the screen you are recording before recording the next step. Blocked Requests, which stops resources from loading, likewise skips those loads at run time but does not affect how the screen renders during recording (as of October 2026; Source: Browser Testing). Step Replay, which replays steps in the extension, also does not necessarily behave the same as an actual run.
Resilience is decided by how elements are located and how steps wait
The settings that determine how well a test withstands screen changes fall into two groups: how elements are located and how steps wait.
| Setting | What it does | When it fits |
|---|---|---|
| Datadog's locator (default) | Locates the element with multiple clues such as XPath / text / class / nearby elements, and updates the clues on runs that succeed | Most steps, as is |
| User Specified Locator | Locates with the XPath 1.0 or CSS you specify, and by default fails the test when it misses | Special steps, such as clicking the nth item regardless of its content |
| Step timeout | Retries for 60 seconds by default until the element is found, extendable up to 300 seconds | Elements that take time to appear |
| Wait step | Adds a step that waits for a set time, up to a limit of 300 seconds | Screens known to take more than 60 seconds to load |
| If this step fails, continue to next step | Proceeds to the next step even if that step fails | Pop-ups that sometimes appear and sometimes do not |
The official documentation recommends limiting a specified locator to exceptional cases, because with the default locator the clues repair themselves automatically. In the author's view, because the clues repair themselves automatically, room also remains for unintended screen changes to pass, so confirm the state you arrived at with a final assertion. How to set conditions is shared with Assertion. One way to proceed is to run the test once right after recording it, and revisit the waiting only for the steps that failed by timing out.
Can you get through one-time password screens without stopping?
Logins that require a time-based one-time password (TOTP) that changes over time for multi-factor authentication (MFA) are where browser tests tend to stall. In Datadog, you can store a TOTP secret key or QR code as an MFA Token global variable (as of October 2026; Source: Use TOTPs For MFA In Browser Tests). When you import that variable during recording, generate a code from the hand icon, and paste it into the input field, the paste operation is kept as one step. The advantage is that you do not need to prepare a separate test environment with authentication removed. Because you can restrict who can use the variable by organization role, decide how the secret key is handled together with your RBAC design.
Narrow down the settings to fix from the screen of the failed run
Billing is counted by the number of test runs, and how it grows as frequency multiplied by locations is summarized in the Synthetics explanation. Here, we recommend starting the review of resilience not from the settings screen but from the results of the failed runs. Open the most recent failed run of your own test, and tell apart whether the element was not found at the failed step or the wait time ran out. After fixing it, run the test manually; if it gets past the step that had failed and proceeds to the final assertion, the review of that step is done.