@@ -3,6 +3,7 @@ Documentation Verify scenarios of importing a series from an external site
3
3
Library Selenium2Library
4
4
Library DateTime
5
5
Resource ../../auth.steps.robot
6
+ Resource ../../selenium.utils.robot
6
7
Suite Setup Before Test Suite
7
8
Suite Teardown After Test Suite
8
9
Test Setup Before Test
@@ -18,18 +19,15 @@ Import series from an external site (in English, use category, country and date
18
19
Should Match Regexp ${requestLocation } /series/import/request/\\d+
19
20
${category } = Get Selected List Label id=category
20
21
${country } = Get Selected List Label id=country
21
- # We can't use "Textfield Value Should Be" because it causes NPE on inputs of type url/number:
22
- # https://github.com/MarkusBernhardt/robotframework-selenium2library-java/issues/92
23
22
${quantity } = Get Value id=quantity
24
- ${imageUrl } = Get Value id=image-url
25
23
${year } = Get Selected List Label id=year
26
24
Element Text Should Be id=request-url ${importUrl }
27
25
Element Text Should Be id=request-status ParsingSucceeded
28
26
Should Be Equal ${category } Prehistoric animals
29
27
Should Be Equal ${country } Italy
30
28
Should Be Empty ${quantity }
31
29
Checkbox Should Be Selected id=perforated
32
- Should Be Equal ${ imageUrl } http://127.0.0.1:8080/image/1
30
+ Urlfield Value Should Be id=image-url http://127.0.0.1:8080/image/1
33
31
Should Be Equal ${year } 2000
34
32
Input Text id=quantity 1
35
33
Submit Form id=create-series-form
@@ -62,18 +60,15 @@ Import series from an external site (in Russian, use description locator)
62
60
Should Match Regexp ${location } /series/import/request/\\d+
63
61
${category } = Get Selected List Label id=category
64
62
${country } = Get Selected List Label id=country
65
- # We can't use "Textfield Value Should Be" because it causes NPE on inputs of type url/number:
66
- # https://github.com/MarkusBernhardt/robotframework-selenium2library-java/issues/92
67
63
${quantity } = Get Value id=quantity
68
- ${imageUrl } = Get Value id=image-url
69
64
${year } = Get Selected List Label id=year
70
65
Element Text Should Be id=request-url http://localhost:8080/series/2?lang=ru&str=тест
71
66
Element Text Should Be id=request-status ParsingSucceeded
72
67
Should Be Equal ${category } Prehistoric animals
73
68
Should Be Equal ${country } Italy
74
69
Should Be Empty ${quantity }
75
70
Checkbox Should Be Selected id=perforated
76
- Should Be Equal ${ imageUrl } http://localhost:8080/image/1
71
+ Urlfield Value Should Be id=image-url http://localhost:8080/image/1
77
72
Should Be Equal ${year } 2000
78
73
79
74
Import series from external site with catalog numbers (use description locator)
@@ -120,10 +115,7 @@ Import series and series sale with a new seller from an external site
120
115
${group } = Get Selected List Label id=seller-group
121
116
Should Be Equal ${group } example.com
122
117
Textfield Value Should Be id=seller-name Lando Livianus
123
- # We can't use "Textfield Value Should Be" because it causes NPE:
124
- # https://github.com/MarkusBernhardt/robotframework-selenium2library-java/issues/92
125
- ${sellerUrl } = Get Value id=seller-url
126
- Should Be Equal ${sellerUrl } http://example.com/lando-livianus
118
+ Urlfield Value Should Be id=seller-url http://example.com/lando-livianus
127
119
Submit Form id=create-series-form
128
120
${seriesLocation } = Get Location
129
121
Should Match Regexp ${seriesLocation } /series/\\d+
0 commit comments