-
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 when I press value by the attribute name #140
- Loading branch information
1 parent
12a3155
commit 0aee378
Showing
4 changed files
with
44 additions
and
4 deletions.
There are no files selected for viewing
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
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
15 changes: 15 additions & 0 deletions
15
tests/features/test--when--i-press-button-by-attribute.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,15 @@ | ||
Feature: An example to press a button | ||
|
||
As a tester | ||
I want to be able to press a button | ||
|
||
Scenario: Verify clicking a button using its ID attribute. | ||
Given I am on "/test--when--i-press-button.html" | ||
When I press "btn-pressID" by "id" attr | ||
Then I should see "Button Pressed Successfully" | ||
|
||
Scenario: Verify that you can click a button using its default name attribute. | ||
Given I am on "/test--when--i-press-button.html" | ||
When I press "btn-pressname" by attr | ||
Then I should see "Button Pressed 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