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

When I click "link"

  • 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 click "link" by attribute
        • 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 step definition is used as a command to click a link, ensuring correct navigation to the expected page.

When (I|we)* click "([^"]*)?"

Define the step for clicking the link by its text.

 

Example by text:

When I click "Contact Us"

 

 

 

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