Then the "item" link should contain "url"

This definition step ensures that the href attribute of a link element includes a URL or part of a URL, with the element located using its link text.

Then (the )*"([^"]*)?" link should contain "([^"]*)?"

Example:

Then the "Login" link should contain "/log-in"

 

Then the "item" link should contain "url" by its "class" attribute

Then the "item" link should contain "url" by attr

This step definition involves entering a specific value into a designated field on the tested website, identified by its attribute.

 

Then (the )*"([^"]*)?" link should contain "([^"]*)?" by( its)*( "([^"]*)?")* (attribute|attr) 

Example 1:

Then the "aboutUs" link should contain "about" by its "class" attribute


Example 2:

Then the "#aboutUsid" link should contain "about" by attr


Example 3:

Then the ".contactUs" link should contain "/contact-" by attr