byLinkedElement
Experimental locator that relates two elements by matching attributes.
const label = byLinkedElement().onLinkedElement(byDataTestId('input')).extractAttribute('for').toMatchMyAttribute('id');
Experimental locator that relates two elements by matching attributes.
const label = byLinkedElement().onLinkedElement(byDataTestId('input')).extractAttribute('for').toMatchMyAttribute('id');