CAPABILITY GENERATOR

LambdaTest DocumentationAutomation Testing ● Selenium Automation Capabilities

Selenium Automation Capabilities


Below mentioned are the Selenium Capabilities which will help you to perform automation testing using LambdaTest Selenium grid.

Selenium Capabilities


Key
Values
Capability

browserName

Chrome
Firefox
Safari
MicrosoftEdge
Internet Explorer

This is a mandatory & case-sensitive capability which represents the name of the selected browser.

version

Ex: 60

This capability is for the version of the browser mentioned above. This version you provide as a desired capability needs to be a valid one.

platform

Supported Windows:

  • Windows 10
  • Windows 8.1
  • Windows 8
  • Windows 7

Supported MacOS:

  • Mac OS X 10.13
  • Mac OS X 10.12
  • Mac OS X 10.11
  • Mac OS X 10.10
  • Mac OS X 10.9

If a platform for testing is not declared then LambdaTest will map your test to a relevant operating system for the selected browser. Here is a list of platforms supported by LambdaTest Selenium Grid.

Windows:
Windows XP
Windows 7
Windows 8.1
Windows 10

MacOS:
High Sierra
Sierra
El Capitan
Mavericks
Yosemite

resolution

Example: 1600×1200

This capability would help you to specify a particular screen resolution for your VM(Virtual Machine). By default, the resolution would be 1366×768.

The values are both space as well as case-insensitive. This means that any value you provide as Mac OS X 10.13 or mac os x 10.13 would be correct.

LambdaTest Advance Capabilities


In this table, LambdaTest advance capabilities key,values and capabilities are listed.

Key
Values
Capability

user

Example:
Your LambdaTest Username

Required if your framework does not support basic auth in url.

accessKey

Example: Your LambdaTest Access Key

Required if your framework does not support basic auth in url.

name

Example: ToDo Sample Test

Represents the name of a test.

build

Example: 5.1

Represent the build number for your test.

video

true, false

This capability helps in video recording of the complete screen while the test gets executed. You can record maximum up to 10 minutes.

visual

true, false

Screenshots will be recorded at each test step.

Note : test execution time will increase if it’s set as ‘true’

network

true, false

Captures a recording for network packets while the test gets executed.

console

true, false

Javascript logs will be recorded for the test.

Note : test execution time will increase if it’s set as ‘true’.

tunnel

true, false

To run test on locally hosted application.

tunnelName

Example: Your tunnel Name

Required, if you are running more than one tunnel.

timezone

Ex. UTC+06:00

Represents the custom timezone you select for executing a test. A full list including all the values of timezone can be found here.

Default Selenium Capabilities


Key
Values
Capability
javascriptEnabled true, false Based on the user provided input, this capability helps to enable the support for JavaScript execution.
databaseEnabled true, false Decides if a session could communicate with the database.
locationContextEnabled true, false Decides if a session can use the features with respect to different geographic locations.
applicationCacheEnabled true, false Decides if a session is able to utilize the application cache.
browserConnectionEnabled true, false Determines the browser connectivity with respect to the query involved in the session. Also checks whether the session can be disabled if required by the end user.
webStorageEnabled true, false Decides if a session is able to connect with storage objects.
acceptSslCerts true, false Decides if a session by default should accept all SSL certificates.
rotatable true, false This value is applicable only to mobile applications. Decides if a session is able to switch page’s layout from portrait to landscape and vice-versa.
nativeEvents true, false Decides if a session should be able to trigger native events along with the simulation derived from user input.
proxy proxy object Represents the details related to any proxy used by the end user. If a proxy isn’t specified then the system’s default state gets utilized. The format being used is set out under Proxy JSON Object.
unexpectedAlertBehaviour accept, dismiss, ignore Determines the action of a browser for handling alerts, prior to pointing the UnhandledAlertException.
elementScrollBehavior integer Determines the scrolling behavior according to the user provided input. The user can decide if the elements should be aligned to top(0) or bottom(1) with respect to the elements scroll-ability inside the viewport. By default the value is set to 1, aligning the scroll behavior to top. This is compatible in IE and Firefox (since 2.36)