Skip to content

@saflib/playwright


Function: getByString()

getByString(page, stringThing): Locator

Convenience function for getting an element by an ElementString. Use this as much as possible, as it really helps avoid spending a bunch of time debugging string matching issues.

Parameters

ParameterType
pagePage
stringThingElementString

Returns

Locator