Actions8
- Browser Rest Apis Actions
Overview
This node interacts with the Browserless API to perform browser automation tasks focused on performance analysis. It allows users to configure and launch browser instances, set performance budgets, and specify URLs to analyze. Common scenarios include automated website performance testing, monitoring page load metrics, and running browser-based audits with customizable settings such as ad-blocking, timeouts, and launch options.
Use Case Examples
- Automate performance testing of a website by specifying a URL and performance budgets.
- Launch a new browser instance with custom launch arguments and analyze page performance.
- Use ad-blocking to test website performance without ads affecting load times.
Properties
| Name | Meaning |
|---|---|
| Budgets | Sets performance budgets to evaluate against during the performance analysis. |
| Config | Configuration options for the performance analysis. |
| Url | The URL of the website to analyze for performance. |
| Timeout | Overrides the system-level timeout for the request in milliseconds. |
| Block Ads | Determines whether to load ad-blocking extensions during the session. |
| Enable Launch | Whether to launch a new browser instance for the performance analysis. |
| Launch | Options to configure the browser launch, including arguments, viewport settings, devtools, headless mode, and other browser behaviors. |
| Use Custom Body | Whether to use a custom JSON body for the request instead of the predefined properties. |
| Custom Body | Custom JSON body to send with the request if 'Use Custom Body' is enabled. |
| Request Options | Additional request options such as batching, SSL certificate handling, proxy settings, and timeout for the HTTP request. |
Output
JSON
budgets- Performance budgets used in the analysis.config- Configuration settings applied during the performance analysis.url- The URL analyzed for performance.timeout- Timeout setting applied to the request.blockAds- Indicates if ad-blocking was enabled during the session.enableLaunch- Indicates if a new browser instance was launched.launch- Details of the browser launch configuration.useCustomBody- Indicates if a custom request body was used.customBody- The custom JSON body sent with the request, if applicable.requestOptions- Additional HTTP request options used.
Dependencies
- Browserless API
Troubleshooting
- Timeout errors if the specified timeout is too low; increase the timeout value to resolve.
- Issues loading certain websites when ad-blocking is enabled; disable 'Block Ads' to test without ad-blocking.
- Errors related to launching the browser instance if 'Enable Launch' is true but launch options are misconfigured; verify launch settings.
Links
- Browserless Performance API Documentation - Official documentation for the Browserless API performance endpoint.