DEV Community

Cover image for Webship-js: When I select "option" from "select list"
webship.co
webship.co

Posted on

Webship-js: When I select "option" from "select list"

This step definition serves as a command for choosing an option from a selection of items in a dropdown list.
Real example testing on the https://donate.wfp.org site.

Feature: Check the Language
  As a nonymouse user
  I want to be able to visit the Language
  So that I know that the site is working
  Scenario: Check Language
    Given I am on the homepage
     When I select "ar" from "lng"
      And we wait 3 seconds
     Then I should see "تبرّع شهرياً"                    
     When I select "fr" from "lng"
      And we wait 3 seconds
     Then I should see "DON MENSUEL"
     When I select "de" from "lng"
      And we wait 3 seconds
     Then I should see "MONATLICH SPENDEN"
     When I select "es" from "lng"
      And we wait 3 seconds
     Then I should see "DONACIÓN MENSUAL"
     When I select "en-gb" from "lng"
      And we wait 3 seconds
     Then I should see "GIVE MONTHLY"
      And we wait 3 seconds
Enter fullscreen mode Exit fullscreen mode

Watch the recorded video of the robot while running the automated functional testing feature
https://www.youtube.com/watch?v=NRXEnLZWj64

Learn more about Step Definitions in Webship-js

Visit the documentation site:- https://webship.co/docs

Top comments (0)