-
Notifications
You must be signed in to change notification settings - Fork 220
/
Copy pathimage.feature
49 lines (40 loc) · 1.39 KB
/
image.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
Feature: Image
Background:
Given I am on the static elements page
Scenario: Getting the image element
When I get the image element
Then the image should be "106" pixels wide
And the image should be "106" pixels tall
Scenario Outline: Locating an image on the page
When I get the image element by "<search_by>"
Then the image should be "106" pixels wide
And the image should be "106" pixels tall
Scenarios:
| search_by |
| id |
| class |
| name |
| xpath |
| index |
| alt |
| src |
| css |
Scenario Outline: Locating an image using multiple parameters
When I get the image element by "<param1>" and "<param2>"
Then the image should be "106" pixels wide
And the image should be "106" pixels tall
Scenarios:
| param1 | param2 |
| class | index |
| name | index |
Scenario: Finding an image dynamically
When I get the image element while the script is executing
Then I should see that the image exists
And the image should be "106" pixels wide
And the image should be "106" pixels tall
Scenario: Check an image loaded
When I get the image element load status
Then I should see that the image loaded
Scenario: Check an image is not loaded
When I get the broken image element load status
Then I should see that the image is not loaded