DEV Community

Cover image for Webship-js: When I ( check & uncheck ) "checkbox"
webship.co
webship.co

Posted on

Webship-js: When I ( check & uncheck ) "checkbox"

When I check "checkbox"
This step definition serves as a command to mark/select a checkbox.
When I uncheck "checkbox"
This step definition serves as a command to clear/deselect a checkbox.

Real example testing on the https://whc.unesco.org
site.

Feature: Check the checkbox
  As a nonymouse user
  I want to be able to visit the home page
  So that I know that the site is working
  Scenario: Check the checkbox
    Given I am on the homepage
     When I click "Login"
      And I uncheck "rememberme"
      And I check "rememberme"
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=ozeMeji9ytw

See all the blog:- https://webship.co/blog/webship-js-when-i-check-uncheck-checkbox

test #testing #QA #Automated #checkbox

Top comments (0)