-
Notifications
You must be signed in to change notification settings - Fork 763
/
location.robot
171 lines (150 loc) · 6.95 KB
/
location.robot
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
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
*** Settings ***
Test Setup Go To Front Page
Default Tags assertions
Resource ../resource.robot
*** Test Cases ***
Location Should Be
[Tags] NoGrid
[Documentation] LOG 1:5 Current location is '${FRONT PAGE}'.
Location Should Be ${FRONT PAGE}
Location Should Be ${FRONT PAGE} message=taco
Location Should Be ${FRONT PAGE} message=None
Run Keyword And Expect Error
... Location should have been 'non existing' but was '${FRONT PAGE}'.
... Location Should Be non existing
Run Keyword And Expect Error
... not a url
... Location Should Be non existing message=not a url
Run Keyword And Expect Error
... None
... Location Should Be non existing message=None
Location Should Contain
[Tags] NoGrid
[Documentation] LOG 1:5 Current location contains 'html'.
Location Should Contain html
Location Should Contain html message=foobar
Location Should Contain html message=None
Run Keyword And Expect Error
... Location should have contained 'not a location' but it was '${FRONT PAGE}'.
... Location Should Contain not a location
Run Keyword And Expect Error
... did not find it
... Location Should Contain not a location message=did not find it
Run Keyword And Expect Error
... None
... Location Should Contain not a location message=None
Wait Until Location Contains At The End
[Setup] Go To Page "javascript/wait_location.html"
Click Element button
Wait Until Location Contains html
Wait Until Location Contains In The Middle
[Setup] Go To Page "javascript/wait_location.html"
Click Element button
Wait Until Location Contains ${PORT}
Wait Until Location Contains As Number
[Setup] Go To Page "javascript/wait_location.html"
Click Element button
${number} Convert To Integer ${PORT}
Wait Until Location Contains ${number}
Wait Until Location Contains Fails
[Setup] Go To Page "javascript/wait_location.html"
${orig_timeout}= Set Selenium Timeout 2 s
Click Element button
Run Keyword And Expect Error
... Location did not contain 'not_here' in 2 seconds.
... Wait Until Location Contains not_here
Set Selenium Timeout ${orig_timeout}
Wait Until Location Contains Fails With Timeout
[Setup] Go To Page "javascript/wait_location.html"
Click Element button
Run Keyword And Expect Error
... my_message
... Wait Until Location Contains not_here timeout=0.1 message=my_message
Wait Until Location Is
[Setup] Go To Page "javascript/wait_location.html"
Click Element button
Wait Until Location Is ${FRONT_PAGE}
Wait Until Location Is Fails
[Setup] Go To Page "javascript/wait_location.html"
${orig_timeout}= Set Selenium Timeout 2 s
Click Element button
Run Keyword And Expect Error
... Location did not become 'not_me' in 2 seconds.
... Wait Until Location Is not_me
Set Selenium Timeout ${orig_timeout}
Wait Until Location Is Fails With Timeout
[Setup] Go To Page "javascript/wait_location.html"
Click Element button
Run Keyword And Expect Error
... my_message
... Wait Until Location Is not_here timeout=0.1 message=my_message
Wait Until Location Is Not
[Setup] Go To Page "javascript/wait_location.html"
Click Element button
Wait Until Location Is Not ${FRONT_PAGE}javascript/wait_location.html
Wait Until Location Is Not Fail
[Setup] Go To Page "javascript/wait_location.html"
${orig_timeout}= Set Selenium Timeout 2 s
Run Keyword And Expect Error
... Location is '${FRONT_PAGE}javascript/wait_location.html' in 2 seconds.
... Wait Until Location Is Not ${FRONT_PAGE}javascript/wait_location.html
Set Selenium Timeout ${orig_timeout}
Wait Until Location Is Not Fails With Timeout
[Setup] Go To Page "javascript/wait_location.html"
${orig_timeout}= Set Selenium Timeout 2 s
Click Element button
Run Keyword And Expect Error
... Location is '${FRONT_PAGE}javascript/wait_location.html' in 750 milliseconds.
... Wait Until Location Is Not ${FRONT_PAGE}javascript/wait_location.html timeout=750ms
Set Selenium Timeout ${orig_timeout}
Wait Until Location Is Not Fails With Message
[Setup] Go To Page "javascript/wait_location.html"
Sleep 1s # Make sure you don't check too soon
${orig_timeout}= Set Selenium Timeout 2 s
Run Keyword And Expect Error
... my_message
... Wait Until Location Is Not ${FRONT_PAGE}javascript/wait_location.html message=my_message
Set Selenium Timeout ${orig_timeout}
Wait Until Location Does Not Contain
[Setup] Go To Page "javascript/wait_location.html"
Click Element button
Wait Until Location Does Not Contain wait_location
Wait Until Location Does Not Contain Fail
[Setup] Go To Page "javascript/wait_location.html"
${orig_timeout}= Set Selenium Timeout 2 s
run keyword and expect error
... Location did contain 'wait_location.html' in 2 seconds.
... Wait Until Location Does Not Contain wait_location.html
Set Selenium Timeout ${orig_timeout}
Wait Until Location Does Not Contain Fail In The Middle
[Setup] Go To Page "javascript/wait_location.html"
${orig_timeout}= Set Selenium Timeout 2 s
run keyword and expect error
... Location did contain 'javascript' in 2 seconds.
... Wait Until Location Does Not Contain javascript
Set Selenium Timeout ${orig_timeout}
Wait Until Location Does Not Contain Fail As Number
[Setup] Go To Page "javascript/wait_location.html"
${orig_timeout}= Set Selenium Timeout 2 s
${number} Convert To Integer ${PORT}
run keyword and expect error
... Location did contain '${number}' in 2 seconds.
... Wait Until Location Does Not Contain ${number}
Set Selenium Timeout ${orig_timeout}
Wait Until Location Does Not Contain Fail At The End
[Setup] Go To Page "javascript/wait_location.html"
${orig_timeout}= Set Selenium Timeout 2 s
run keyword and expect error
... Location did contain '.html' in 2 seconds.
... Wait Until Location Does Not Contain .html
Set Selenium Timeout ${orig_timeout}
Wait Until Location Does Not Contain Fail With Timeout
[Setup] Go To Page "javascript/wait_location.html"
run keyword and expect error
... Location did contain 'wait_location.html' in 1 second.
... Wait Until Location Does Not Contain wait_location.html timeout= 1 s
Wait Until Location Does Not Contain Fail With Message
[Setup] Go To Page "javascript/wait_location.html"
run keyword and expect error
... my_message
... Wait Until Location Does Not Contain wait_location.html message=my_message