Skip to main content

Function: getLocatorInfoForErrorLog()

getLocatorInfoForErrorLog(locator): string

Defined in: packages/core/src/utils/getLocatorInfoForErrorLog.ts:17

Display a rough description of the locators for error logging this is an estimate, not a precise description with the absence of interactor locators such as LinkedCssLocator would not be interpreted correctly

Lives in its own leaf module (imports only the locator model, never the error hierarchy) so the interactor errors that build their locatorDescription from it can depend on it without pulling in locatorUtil — which throws LocatorResolutionError and would otherwise close a locatorUtil ↔ error import cycle.

Parameters​

locator​

PartLocator

Returns​

string