-
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 assertion that input text contains a specific value by its attrib…
…utes #154
- Loading branch information
1 parent
14dc2f1
commit 13958c7
Showing
3 changed files
with
37 additions
and
1 deletion.
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
10 changes: 10 additions & 0 deletions
10
tests/features/test--then--i-should--see-text-in-element-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,10 @@ | ||
Feature: An example to test whether an element contains a certain text or not | ||
As a tester | ||
I want to be able to check an element contains a certain text or not | ||
|
||
Scenario: Check an element if it contains a specific text | ||
Given I am on "/test--then--i-should--not--see-text-in-element.html" | ||
When I fill in "Username" with "user1" | ||
And I fill in "Password" with "1234" | ||
Then I should see "user1" in the "uname" element by its "id" attr | ||
And I should see "1234" in the "pwordcss" element by attr |
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