addBrowsers method

Class: ConfigurationPlatform: Selenium 4Language: JavaScript SDK:

Request that the checkpoint be rendered by the Ultrafast Grid using the specified desktop browsers and viewport sizes.

Syntax

let configval = config.addBrowsers(browsersInfo);

Parameters

browsersInfo
Type:
(
  | DesktopBrowserInfo
  | ChromeEmulationInfo
  | IOSDeviceInfo
  | { deviceName: DeviceNamePlain; screenOrientation?: ScreenOrientationPlain }
)[];

One or more browser or device configuration definitions passed as an array or multiple parameters.

Type definitions

DeviceNamePlain
This type allows passing strings instead of enumerated values, for the list of enum values see DeviceName.
ScreenOrientationPlain
This type allows passing strings instead of enumerated values, for the list of enum values see ScreenOrientation.

Return value

Type: Configuration
The value returned is the object that called the method. This allows you to use a fluent style to call the setXXXX methods of the Configuration class.

Remarks

You can use this method to pass a list of configurations instead of configuring each browser device individually using multiple calls to addBrowser.