-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add a step definition of selecting the option in the dropdown list fi…
…eld by its attributes #165
- Loading branch information
1 parent
a125a0f
commit 1d5c6b8
Showing
2 changed files
with
47 additions
and
0 deletions.
There are no files selected for viewing
16 changes: 16 additions & 0 deletions
16
tests/features/test--when--i-select-option-from-dropdownlist-by-attr.feature
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
Feature: An example to select option from dropdown list by its attributes | ||
|
||
As a tester | ||
I want to be able to test select option from dropdown list by its attributes | ||
|
||
Scenario: Check of selecting option from dropdown list by its attributes | ||
Given I am on "/test--when--i-select-option-from-dropdownlist.html" | ||
When I select "Saab" from "#cars" by attr | ||
When I press "Submit" | ||
Then I should see "Option ( Saab ) has been selected successfully" | ||
|
||
Scenario: Check of selecting option from drop down list | ||
Given I am on "/test--when--i-select-option-from-dropdownlist.html" | ||
When I select "Mercedes" from "cars" by its "id" attr | ||
When I press "Submit" | ||
Then I should see "Option ( Mercedes ) has been selected successfully" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters