-
Notifications
You must be signed in to change notification settings - Fork 220
/
Copy pathspan.feature
35 lines (28 loc) · 893 Bytes
/
span.feature
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
Feature: Span
Background:
Given I am on the static elements page
Scenario: Getting the text from a span
When I get the text from the span
Then the text should be "My alert"
Scenario Outline: Locating spans on the page
When I search for the span by "<search_by>"
Then the text should be "My alert"
Scenarios:
| search_by |
| id |
| class |
| xpath |
| index |
| text |
| title |
| css |
Scenario Outline: Locating span using multiple parameters
When I search for the span by "<param1>" and "<param2>"
Then the text should be "My alert"
Scenarios:
| param1 | param2 |
| class | index |
Scenario: Finding a span dynamically
When I get the text from a span while the script is executing
Then I should see that the span exists
And the text should be "My alert"