Taiko
Documentation

Home / API Reference

link

This selector lets you identify a link on a web page with text or attribute and value pairs and proximity selectors.

Examples

await click(link('Get Started'))
await link('Get Started').exists()
await link({id:'linkId'}).exists()
await link({id:'linkId'},below('text')).exists()
await link(below('text')).exists()

Parameters


text

The link text.


_options

attrValuePairs

Pairs of attribute and value like {"id":"name","class":"class-name"}


args relativeSelector

Proximity selectors


Returns

LinkWrapper