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. Form Steps

When I select "option" from "select list"

  • Documentation
    • Webship JS 2.0.x
      • Install Webship JS
      • Global Settings
      • Step Definitions
      • API Steps
      • Accessibility Steps
      • Action Steps
      • Assertion Steps
      • Auth State Steps
      • Clock Steps
      • Cookie Steps
      • Debug Steps
      • Dialog Steps
      • Element Steps
      • Field Steps
      • File Download Steps
      • Form Steps
        • When I fill in
        • When I check "checkbox"
        • When I uncheck "checkbox"
        • When I select "option" from "select list"
          • When I select "option" from "select list" by attribute
        • When I select radio button "value"
      • 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

Select an option from a dropdown by label, id, class, or name.

Step pattern

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

Examples

Example #1
When I select "Mercedes" from "Cars"
Example #2
When I select "saab" from "#cars"
Example #3
When I select "Mercedes" from "cars"
Example #4
And we select "English" from "Language"

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