Skip to main content
Home

Main navigation

  • Home
  • Products
  • Services
  • Docs
  • Blog
  • About us
  • Contact

Breadcrumb

  1. Home
  2. Documentation
  3. Webship JS 1.0.x
  4. Step Definitions

Then the "item" link should contain "url"

  • Documentation
    • Webship JS 1.0.x
      • Install Webship JS
      • Step Definitions
        • Given I am on homepage
        • Given I am on "specific page"
        • When I go to the homepage
        • When I go to "specific page"
        • When I reload the page
        • When I move backward one page
        • When I move forward one page
        • When I fill in
        • When I press "button"
        • When I click "link"
        • When I check "checkbox"
        • When I uncheck "checkbox"
        • When I select "option" from "select list"
        • When I attach the file "file name" to "input file"
        • When I wait
        • Then I should see
        • Then I should be
        • Then the "item" checkbox
        • Then the item should contain
        • Then the "item" link should contain "url"
        • Then the response status code should be {number}
        • When I attach the file "file name" to "element"
      • Assertions
      • Commands
      • Needed Tools
    • Integrations

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"

Boost your site's success with automated testing

For Commercial Professional Support

Contact Us

Daily Automated Functional Acceptance Testing Daily Automated Functional Acceptance Testing

© Copyrights 2022 - 2025 Webship.co All Rights Reserved.

Webtheme Footer

  • Privacy
  • About us
  • Contact

Home

Webtheme social media menu

  • Github
  • Gitlab
  • Bitbucket
  • X
  • Linkedin
  • Youtube