Link Steps

Link href, title, target, rel assertions. Quick wins for content QA and SEO PMs.

Step phrasings in this group

The book sidebar lists each individual step page under this group.

Then the link "About" with the href "/about" should exist

Assert a link with the given visible text and an href containing a fragment exists.

Then the link "Home" with the href "/" within the element "#main-nav" should exist

Assert a link exists inside a specific parent element.

Then the link "Sign in" with the href "/login" should not exist

Assert NO link with the given visible text and href fragment exists.

Then the link "Logout" with the href "/logout" within the element ".guest-nav" should not exist

Assert NO link with text+href exists inside a specific parent element.

Then the link with the title "Open menu" should exist

Assert at least one link has the exact title attribute.

Then the link with the title "Delete user" should not exist

Assert NO link has the given exact title attribute.

Then the link "Twitter" should be an absolute link

Assert a link's href is absolute (starts with http:// or https://).

Then the link "Home" should not be an absolute link

Assert a link's href is relative (no http:// / https:// scheme).

When I click on the link with the title "Open menu"

Click a link addressed by its title attribute.

Back to all step groups