-
Notifications
You must be signed in to change notification settings - Fork 220
/
Copy pathcheck_box.feature
47 lines (38 loc) · 1.3 KB
/
check_box.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
36
37
38
39
40
41
42
43
44
45
46
47
Feature: Check Box
In order to interact with check boxes
Testers will need access and interrogation ability
Background:
Given I am on the static elements page
Scenario: Selecting a check box
When I select the First check box
Then the First check box should be selected
When I unselect the First check box
Then the First check box should not be selected
Scenario Outline: Locating check boxes on the page
When I search for the check box by "<search_by>"
Then I should be able to check the check box
Scenarios:
| search_by |
| id |
| class |
| name |
| xpath |
| index |
| value |
| label |
| css |
Scenario Outline: Locating check boxes using multiple parameters
When I search for the check box by "<param1>" and "<param2>"
Then I should be able to check the check box
Scenarios:
| param1 | param2 |
| class | index |
| name | index |
Scenario: Retrieve a CheckBox
When I retrieve a check box element
Then I should know it exists
And I should know it is visible
Scenario: Finding a check box dynamically
When I select the first check box while the script is executing
Then I should see that the checkbox exists
And the First check box should be selected