Context object.
Text to search for.
Optional
options: FilterOptionsOptions for filtering.
The selescted element as an element handle.
const $el = await getElementByText(ctx, 'Save and Submit');
const $el = await getElementByText(ctx, 'Last Name', {filterElementWithTag: 'div'});
Generated using TypeDoc
Returns an element based on its text content.