addBrowsers method

Class: ConfigurationPlatform: NightwatchLanguage: 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:
        | DeviceName
        | "BlackBerry Z30"
        | "Blackberry PlayBook"
        | "Galaxy A5"
        | "Galaxy Note 10"
        | "Galaxy Note 10 Plus"
        | "Galaxy Note 2"
        | "Galaxy Note 3"
        | "Galaxy Note 4"
        | "Galaxy Note 8"
        | "Galaxy Note 9"
        | "Galaxy S10"
        | "Galaxy S10 Plus"
        | "Galaxy S3"
        | "Galaxy S5"
        | "Galaxy S8"
        | "Galaxy S8 Plus"
        | "Galaxy S9"
        | "Galaxy S9 Plus"
        | "Kindle Fire HDX"
        | "LG G6"
        | "LG Optimus L70"
        | "Laptop with HiDPI screen"
        | "Laptop with MDPI screen"
        | "Laptop with touch"
        | "Microsoft Lumia 550"
        | "Microsoft Lumia 950"
        | "Nexus 10"
        | "Nexus 4"
        | "Nexus 5"
        | "Nexus 5X"
        | "Nexus 6"
        | "Nexus 6P"
        | "Nexus 7"
        | "Nokia Lumia 520"
        | "Nokia N9"
        | "OnePlus 7T"
        | "OnePlus 7T Pro"
        | "Pixel 2"
        | "Pixel 2 XL"
        | "Pixel 3"
        | "Pixel 3 XL"
        | "Pixel 4"
        | "Pixel 4 XL"
        | "iPad"
        | "iPad 6th Gen"
        | "iPad 7th Gen"
        | "iPad Air 2"
        | "iPad Mini"
        | "iPad Pro"
        | "iPhone 11"
        | "iPhone 11 Pro"
        | "iPhone 11 Pro Max"
        | "iPhone 4"
        | "iPhone 5/SE"
        | "iPhone 6/7/8"
        | "iPhone 6/7/8 Plus"
        | "iPhone X"
        | "iPhone XR"
        | "iPhone XS"
        | "iPhone XS Max";
      screenOrientation?: ScreenOrientation | "landscape" | "portrait";
    }
)[];

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

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.