Skip to content

Lupa API Reference / commands/locator / QueryByLabel

Interface: QueryByLabel

Defined in: src/commands/locator.ts:22

Most form controls usually have dedicated labels that could be conveniently used to interact with the form. In this case, you can locate the control by its associated label using the label locator strategy.

Properties

label

label: string

Defined in: src/commands/locator.ts:26

The accessible name to use to locate the element. This should be the text content of the label.