Skip to main content

extractLocator

Extracts a Playwright locator for an element described in natural language.

Note: extractSelector is deprecated. Use extractLocator instead.

Usage

const locator = await Heal.extractLocator('the search input field');

Returns

A Playwright locator string that can be used to interact with the element.