@@ -3,6 +3,7 @@ Documentation Verify scenarios of importing a series from an external site
33Library Selenium2Library
44Library DateTime
55Resource ../../auth.steps.robot
6+ Resource ../../selenium.utils.robot
67Suite Setup Before Test Suite
78Suite Teardown After Test Suite
89Test Setup Before Test
@@ -18,18 +19,15 @@ Import series from an external site (in English, use category, country and date
1819 Should Match Regexp ${requestLocation } /series/import/request/\\d+
1920 ${category } = Get Selected List Label id=category
2021 ${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
2322 ${quantity } = Get Value id=quantity
24- ${imageUrl } = Get Value id=image-url
2523 ${year } = Get Selected List Label id=year
2624 Element Text Should Be id=request-url ${importUrl }
2725 Element Text Should Be id=request-status ParsingSucceeded
2826 Should Be Equal ${category } Prehistoric animals
2927 Should Be Equal ${country } Italy
3028 Should Be Empty ${quantity }
3129 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
3331 Should Be Equal ${year } 2000
3432 Input Text id=quantity 1
3533 Submit Form id=create-series-form
@@ -62,18 +60,15 @@ Import series from an external site (in Russian, use description locator)
6260 Should Match Regexp ${location } /series/import/request/\\d+
6361 ${category } = Get Selected List Label id=category
6462 ${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
6763 ${quantity } = Get Value id=quantity
68- ${imageUrl } = Get Value id=image-url
6964 ${year } = Get Selected List Label id=year
7065 Element Text Should Be id=request-url http://localhost:8080/series/2?lang=ru&str=тест
7166 Element Text Should Be id=request-status ParsingSucceeded
7267 Should Be Equal ${category } Prehistoric animals
7368 Should Be Equal ${country } Italy
7469 Should Be Empty ${quantity }
7570 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
7772 Should Be Equal ${year } 2000
7873
7974Import 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
120115 ${group } = Get Selected List Label id=seller-group
121116 Should Be Equal ${group } example.com
122117 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
127119 Submit Form id=create-series-form
128120 ${seriesLocation } = Get Location
129121 Should Match Regexp ${seriesLocation } /series/\\d+
0 commit comments