browsersInfo property

Class: ConfigurationPlainPlatform: NightwatchLanguage: JavaScript SDK:

Sets the list of one or more browsers or devices to be rendered on the Ultrafast Grid.

Setting the browsers and devices by assinging to this property defines the complete list of targets overwriting any previously configurations made by using addBrowser or addDeviceEmulation, which build the list of browsers and devices incrementally (i.e. each call to addXXXX adds more browsers to the list of browsers to be rendered). If you call setBrowsersInfo after calling any of the addXXXX methods then the devices configured by the addXXXX will be lost. You may call the addXXXX methods after the setBrowsersInfo method to add more browsers to the list of browsers to be rendered.

Syntax

let suiteConfig = {
  browsersInfo: [
    { height: value1_number, width: value2_number, name: "chrome" },
    { deviceName: "Galaxy Note 3", screenOrientation: "landscape" },
    {
      deviceName: "iPad (7th generation)",
      iosVersion: "latest",
      screenOrientation: "portrait",
    },
  ],
};
eyes.setConfiguration(suiteConfig);

Type:

(DesktopBrowserInfo|ChromeEmulationInfo|IOSDeviceInfo)[]