forked from cheezy/page-object
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathlist_item.feature
34 lines (27 loc) · 921 Bytes
/
list_item.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
Feature: List item
Background:
Given I am on the static elements page
Scenario: Getting the text from a list item
When I get the text from the list item
Then the text should be "Item One"
Scenario Outline: Locating list items on the page
When I search for the list item by "<search_by>"
Then the text should be "Item One"
Scenarios:
| search_by |
| id |
| class |
| xpath |
| index |
| text |
| css |
Scenario Outline: Locating list items using multiple parameters
When I search for the list item by "<param1>" and "<param2>"
Then the text should be "Item One"
Scenarios:
| param1 | param2 |
| class | index |
Scenario: Finding a list item dynamically
When I search for the list item while the script is executing
Then I should see that the list item exists
And the text should be "Item One"