The constructor can be called with filters only:
Link({ id: 'home-link', href: '/' });
Or with no arguments, this can be especially useful when finding a nested element.
ListItem('JavaScript').find(Link()).click(); // click the only link within a specific list item
An object describing a set of filters to apply, which should match the value of applying the filters defined in the InteractorSpecification to the element.
The constructor can be called with a locator:
Link('Home');
Or with a locator and options:
Link('Home', { href: '/' });
The locator value, which should match the value of applying the locator function defined in the InteractorSpecification to the element.
An object describing a set of filters to apply, which should match the value of applying the filters defined in the InteractorSpecification to the element.
Generated using TypeDoc
The type of DOM Element that this interactor operates on.