VisualLocatorSettings class

Platform: PlaywrightLanguage: JavaScript SDK:
Use the fields of this object to defined the locator names and whether all instances should be found or only the first.

Properties

firstOnlyType:boolean
To return only one graphic instance defined by each locator, add this field to the settings passed, with a value of true . To return only all the graphic instance defined by each locator, add this field to the settings passed, with a value of false .
locatorNamesType:string[]
Use this field to specify a list of visual locator names.