Constructor
Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
config | BrowserTestConfig | Yes | Configuration object for the SDK |
BrowserTestConfig
Example
Instance Properties
screenshot
ScreenshotAPI - Methods for capturing website screenshots
Type: ScreenshotAPI
testing
TestingAPI - Methods for agentic testing and job management
Type: TestingAPI
template
TemplateAPI - Methods for managing test templates
Type: TemplateAPI
batch
BatchAPI - Methods for batch operations
Type: BatchAPI
Instance Methods
testConnection()
Tests if the API connection is working and the API key is valid.Returns
Promise<boolean> - true if connection is successful, false otherwise
Example
getUsage()
Retrieves current API usage and quota information.Returns
Promise<QuotaInfo> - Usage statistics and quota limits
