Capabilities for Puppeteer Testing
The LambdaTest Capability Generator allows you to automatically create the capabilities class needed to run your Puppeteer automation scripts on LambdaTest. Here are a few capabilities that you can configure to run your Puppeteer tests.
Key | Expected Values | Description | Capability |
---|---|---|---|
browserName | Chrome, Edge | Specify the browser to test on | const capability = {"browserName": "Chrome"} |
browserVersion | Chrome 83 & above, Edge 83 & above | Specify the browser version to test on | const capability = {"browserVersion": "113.0"} |
platform | Windows: 11, 10, 8, 8.1, 7 macOS: Monterey, Big Sur, Catiline, Mojave | Specify the platform name | const capability = { "LT:Options": {"platform": "Windows 10",}} |
build | Puppeteer Sample Build | Represent the build number for your test | const capability = { "LT:Options": {"build": "<build_name>",}} |
name | Puppeteer Sample Test | Represents the name of a test | const capability = { "LT:Options": {"name": "<test_name>",}} |
resolution | Specifying your desktop resolution before initiating the test | String, Default value: 1920x1080 Windows 11 & 10: 1024x768, 1280x800, 1280x1024, 1366x768, 1440x900, 1680x1050, 1600x1200, 1920x1200, 1920x1080 and 2048x1536 macOS: 1024x768, 1280x960, 1280x1024, 1600x1200 and 1920x1080 | const capability = {"LT:Options": {"resolution": '1024x768'}} |
projectName | Example: My Test | Represent the name of your project | const capability = { "LT:Options": {"projectName": "<project_name>",}} |
tags | ["tag1", "tag2", "tag3"] | Group your Puppeteer tests | const capability = {"LT:Options": { "tags": ["tag1", "tag2", "tag3"], }} |
buildTags | ["build1", "build2", "build3"] | Group your Puppeteer builds | const capability = {"LT:Options": { "buildTags": ["build1", "build2", "build3"] }} |
network | true/false | Enable network logs | const capability = { "LT:Options": {"network": true,}} |
console | true/false | Enable browser console logs | const capabilities = { "LT:Options": {"console": true,}} |
video | true/false | Enable video recording of the entire screen | const capability = { "LT:Options": {"video": true,}} |
tunnel | true/false | Enable tunnel for local testing | const capability = { "LT:Options": {"tunnel": true,}} |
tunnelName | true/false | Specify tunnel name | const capability = { "LT:Options": {"tunnelName": "<tunnel_name>",}} |
geoLocation | AR (Argentina) | Specify country code | const capability = { "LT:Options": {"geoLocation": "AR",}} |
idleTimeout | number | Specifies the timeout of the commands in seconds. Default value: 300 Max value: 1800 If a value greater than 1800 is added, idleTimeout will be set to 1800. | const capability = { "LT:Options": {"idleTimeout": "<number>",}} |