Skip to main content
Home

Main navigation

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

Breadcrumb

  1. Home
  2. Documentation
  3. Webship JS 2.0.x
  4. Action Steps

When I press "button"

  • Documentation
    • Webship JS 2.0.x
      • Install Webship JS
      • Global Settings
      • Step Definitions
      • API Steps
      • Accessibility Steps
      • Action Steps
        • When I press "button"
          • When I press "button" by attribute
        • When I click "link"
        • When I click "operation" in "text" row
        • When I attach the file "file name" to "element"
      • Assertion Steps
      • Auth State Steps
      • Clock Steps
      • Cookie Steps
      • Debug Steps
      • Dialog Steps
      • Element Steps
      • Field Steps
      • File Download Steps
      • Form Steps
      • Iframe Steps
      • Input Steps
      • JavaScript Steps
      • Keyboard Steps
      • Link Steps
      • Meta Tag Steps
      • Modal Steps
      • Navigation Steps
      • Network Steps
      • Path Steps
      • REST Steps
      • Response Steps
      • Responsive Steps
      • Screenshot Steps
      • Scroll Steps
      • Selector Steps
      • Storage Steps
      • Table Steps
      • Video Steps
      • Wait Steps
      • Web First Steps
      • XML Steps
      • YAML Steps
      • Diffy Step Definitions

Press a button, submit input, or link by its visible text.

Step pattern

When (I |we )*press( the)* "([^"]*)?"( button)*

Examples

Example #1
When I press "Log In"
Example #2
And I press the "Log In" button
Example #3
And I press the "Save as" button
Example #4
When we press "Submit"
Example #5
And press "Cancel"

Boost your site's success with automated testing

For Commercial Professional Support

Contact Us

Daily Automated Functional Acceptance Testing   

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

Webtheme Footer

  • Privacy
  • About us
  • Contact

Home

Webtheme social media menu

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