Related features
API testing in a Flow
Call GET, POST, PUT, PATCH, or DELETE in the same Flow as your browser steps. Store JSON as Values and assert what comes back.
Dynamic values
Use environment variables, dates, random data, and custom values inside your tests. Inject dynamic data into any flow with full control.
Fullscreen JSON Editor
Expand any JSON field in DoesQA into a fullscreen editor. Built for large payloads, nested objects and complex configuration.
19.9.0
Custom code
Run custom code inside DoesQA
DoesQA includes thousands of codeless node configurations designed to handle the vast majority of real world testing scenarios.
But when you need something more specific, you can extend your tests with custom JavaScript using the Run Browser Script node.
Run custom code inside DoesQA
This allows you to execute code directly in the browser at any point in your automated flow.
This gives you full flexibility without sacrificing the structure and clarity of your visual test builder.
Return a value to store and use later in the test
Perform advanced assertions
Manipulate the DOM
Create dynamic logic based on runtime conditions
Asserting a custom sorting algorithm
Performing advanced calculations on stored values
Returning a random date within a specific range
Generating complex or unique test data
Comparing multiple elements in a single operation
Creating bespoke validation logic specific to your application
Managed runners
Clear failure context
Practical use cases
The Run Browser Script node is ideal for scenarios such as:
Creating bespoke validation logic specific to your application
Flexible without adding maintenance overhead
You get the control of code, embedded directly into your visual, branching test architecture.
Custom code runs as part of your DoesQA test flow, meaning you still benefit from:
You can extend behaviour where needed, without turning your entire test suite into a framework that needs constant maintenance.
