clickLink abstract method

FutureOr<void> clickLink(
  1. String linkText
)

Clicks on a link containing the specified text.

Searches for an anchor tag (<a>) that contains the given text and clicks on it. This is useful for clicking navigation links or other text-based links.

Example:

await browser.clickLink('About Us');
await browser.clickLink('Sign Out');

Throws if no link with the specified text is found.

Implementation

FutureOr<void> clickLink(String linkText);