forked from cheezy/page-object
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtext_field.feature
59 lines (46 loc) · 1.69 KB
/
text_field.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
48
49
50
51
52
53
54
55
56
57
58
Feature: Text Fields
In order to interact with text fields
Testers will need access and interrogation ability
Background:
Given I am on the static elements page
Scenario: Setting and getting a value from a text field
When I type "abcDEF" into the text field
Then the text field should contain "abcDEF"
Scenario Outline: Locating text fields on the Page
When I search for the text field by "<search_by>"
Then I should be able to type "I found it" into the field
Examples:
| search_by |
| id |
| class |
| name |
| xpath |
| index |
| title |
| label |
| css |
Scenario Outline: Locating text fields on the Page using Watir
When I search for the text field by "<search_by>"
Then I should be able to type "I found it" into the field
Examples:
| search_by |
| data_field |
Scenario Outline: Locating a text field using multiple parameters
When I search for the text field by "<param1>" and "<param2>"
Then I should be able to type "I found it" into the field
Examples:
| param1 | param2 |
| class | index |
| name | index |
Scenario: Retrieve a text field
When I retrieve a text field
Then I should know it exists
And I should know it is visible
Scenario: Finding a text field dynamically
When I find a text field while the script is executing
Then I should see that the text field exists
And I should be able to type "I found it" into the field element
Scenario: Appending text to a text field
When I type "abcd" into the text field
And I append "efg" to the text field
Then the text field should contain "abcdefg"