@@ -18,13 +18,13 @@ Resource resource.robot
18
18
*** Test Cases ***
19
19
Check Titles of Multiple Browser-Windows
20
20
@{BrowserA_Titles } = Get Window Titles browser=BrowserA
21
- Should Be Equal ${BrowserA_Titles } ${BrowserA_EXP_TITLES }
21
+ Should Be Equal ${BrowserA_Titles } ${BrowserA_EXP_TITLES }
22
22
@{BrowserB_Titles } = Get Window Titles browser=BrowserB
23
- Should Be Equal ${BrowserB_Titles } ${BrowserB_EXP_TITLES }
23
+ Should Be Equal ${BrowserB_Titles } ${BrowserB_EXP_TITLES }
24
24
@{BrowserC_Titles } = Get Window Titles browser=BrowserC
25
- Should Be Equal ${BrowserC_Titles } ${BrowserC_EXP_TITLES }
25
+ Should Be Equal ${BrowserC_Titles } ${BrowserC_EXP_TITLES }
26
26
@{All_Browsers_Titles } = Get Window Titles browser=ALL
27
- Should Be Equal ${All_Browsers_Titles } ${ALL_BROWSERS_EXP_TITLES }
27
+ Should Be Equal ${All_Browsers_Titles } ${ALL_BROWSERS_EXP_TITLES }
28
28
29
29
Check Count of Handle
30
30
Check Handle Count 3 BrowserA
@@ -46,12 +46,12 @@ Check Count of Identifiers
46
46
47
47
Check Locations
48
48
@{Locations } = Get Locations browser=ALL
49
- Should Be Equal As Strings @ {Locations } [0 ] ${FRONT_PAGE } javascript/dynamic_content.html?1
50
- Should Be Equal As Strings @ {Locations } [1 ] ${FRONT_PAGE } javascript/dynamic_content.html?2
51
- Should Be Equal As Strings @ {Locations } [2 ] ${FRONT_PAGE } javascript/dynamic_content.html?3
52
- Should Be Equal As Strings @ {Locations } [3 ] ${FRONT_PAGE } javascript/dynamic_content.html?4
53
- Should Be Equal As Strings @ {Locations } [4 ] ${FRONT_PAGE } javascript/dynamic_content.html?5
54
- Should Be Equal As Strings @ {Locations } [5 ] ${FRONT_PAGE } javascript/dynamic_content.html?6
49
+ Should Be Equal As Strings $ {Locations } [0 ] ${FRONT_PAGE } javascript/dynamic_content.html?1
50
+ Should Be Equal As Strings $ {Locations } [1 ] ${FRONT_PAGE } javascript/dynamic_content.html?2
51
+ Should Be Equal As Strings $ {Locations } [2 ] ${FRONT_PAGE } javascript/dynamic_content.html?3
52
+ Should Be Equal As Strings $ {Locations } [3 ] ${FRONT_PAGE } javascript/dynamic_content.html?4
53
+ Should Be Equal As Strings $ {Locations } [4 ] ${FRONT_PAGE } javascript/dynamic_content.html?5
54
+ Should Be Equal As Strings $ {Locations } [5 ] ${FRONT_PAGE } javascript/dynamic_content.html?6
55
55
${count } Get Length ${Locations }
56
56
Should Be Equal As Integers 6 ${count }
57
57
@@ -87,12 +87,12 @@ Get Specific Locations and Title
87
87
Switch Window title:WindowA1
88
88
Location Should Be ${FRONT_PAGE } javascript/dynamic_content.html?1
89
89
@{Locations } = Get Locations browser=BrowserB
90
- Should Be Equal @ {Locations } [0 ] ${FRONT_PAGE } javascript/dynamic_content.html?4
91
- Should Be Equal @ {Locations } [1 ] ${FRONT_PAGE } javascript/dynamic_content.html?5
90
+ Should Be Equal $ {Locations } [0 ] ${FRONT_PAGE } javascript/dynamic_content.html?4
91
+ Should Be Equal $ {Locations } [1 ] ${FRONT_PAGE } javascript/dynamic_content.html?5
92
92
${count } = Get Length ${Locations }
93
93
Should Be Equal As Integers ${count } 2
94
94
@{Titles } = Get Window Titles browser=BrowserC
95
- Should Be Equal @ {Titles } [0 ] WindowC1
95
+ Should Be Equal $ {Titles } [0 ] WindowC1
96
96
${count } = Get Length ${Titles }
97
97
Should Be Equal As Integers ${count } 1
98
98
@@ -157,7 +157,8 @@ Check Identifiers Count
157
157
Switch Window By Location
158
158
[Arguments] ${selected_location }
159
159
@{IDs } = Get Browser Ids
160
- :FOR ${id } IN @{IDs }
161
- \ @{locations } = Get Locations browser=${id }
162
- \ Run Keyword If '${selected_location } ' in $locations
163
- ... Switch Window url:${selected_location } browser=${id }
160
+ FOR ${id } IN @{IDs }
161
+ @{locations } = Get Locations browser=${id }
162
+ Run Keyword If '${selected_location } ' in $locations
163
+ ... Switch Window url:${selected_location } browser=${id }
164
+ END
0 commit comments