File tree 3 files changed +28
-1
lines changed
main/webapp/WEB-INF/views/series
3 files changed +28
-1
lines changed Original file line number Diff line number Diff line change @@ -70,7 +70,7 @@ <h3 class="text-center" th:text="${#strings.capitalize(search_results)}">
70
70
</ h3 >
71
71
72
72
<!--/*/
73
- <p class="text-center" th:if="${#lists.isEmpty(searchResults)}" th:text="#{t_no_series_found}">
73
+ <p id="no-series-found" class="text-center" th:if="${#lists.isEmpty(searchResults)}" th:text="#{t_no_series_found}">
74
74
No series found
75
75
</p>
76
76
/*/-->
Original file line number Diff line number Diff line change @@ -66,3 +66,11 @@ Wait Until Element Value Is
66
66
... ${text }
67
67
... ';
68
68
Wait For Condition ${elemHasValue }
69
+
70
+ Select Random Option From List
71
+ [Documentation] Choose a random option from a select element
72
+ [Arguments] ${locator }
73
+ ${options } = Get List Items ${locator }
74
+ ${size } = Get Length ${options }
75
+ ${randomIndex } = Evaluate random.randint(0, ${size } -1 ) modules=random
76
+ Select From List By Index ${locator } ${randomIndex }
Original file line number Diff line number Diff line change
1
+ *** Settings ***
2
+ Documentation Verify series search scenarios
3
+ Library SeleniumLibrary
4
+ Resource ../../selenium.utils.robot
5
+ Suite Setup Before Test Suite
6
+ Suite Teardown Close Browser
7
+ Force Tags series search logic
8
+
9
+ *** Test Cases ***
10
+ Search series by non-existing catalog number
11
+ Input Text id=catalogNumber 888
12
+ Select Random Option From List id=catalogName
13
+ Submit Form id=search-series-form
14
+ Element Text Should Be id=no-series-found No series found
15
+
16
+ *** Keywords ***
17
+ Before Test Suite
18
+ Open Browser ${SITE_URL } / ${BROWSER }
19
+ Register Keyword To Run On Failure Log Source
You can’t perform that action at this time.
0 commit comments