-
Notifications
You must be signed in to change notification settings - Fork 785
Expand file tree
/
Copy pathpage_load_timeout.robot
More file actions
36 lines (30 loc) · 1.57 KB
/
page_load_timeout.robot
File metadata and controls
36 lines (30 loc) · 1.57 KB
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
*** Settings ***
Resource ../resource.robot
Suite Teardown Switch Back To Suite Browser
Test Teardown Close Browser And Reset Page Load Timeout
*** Test Cases ***
Should Open Browser With Default Page Load Timeout
[Tags] SKIP_ON_WINDOWS
[Documentation] Verify that 'Open Browser' changes the page load timeout.
... LOG 1.1.1:26 DEBUG REGEXP: POST http://localhost:\\d{2,5}/session/[a-f0-9-]+/timeouts {['\\\"]pageLoad['\\\"]: 300000}
... LOG 1.1.1:28 DEBUG STARTS: Remote response: status=200
# Note: previous log check was 33 and 37. Recording to see if something is swtiching back and forth
Open Browser To Start Page
Should Run Into Timeout Exception
[Documentation]
... FAIL REGEXP: TimeoutException: Message: (timeout: Timed out receiving message from renderer|TimedPromise timed out|Navigation timed out after).*
Open Browser To Start Page
Set Selenium Page Load Timeout 1 ms
Reload Page
Should Set Page Load Timeout For All Opened Browsers
[Documentation] One browser is already opened as global suite setup.
... LOG 2:1 DEBUG REGEXP: POST http://localhost:\\d{2,5}/session/[a-f0-9-]+/timeouts {['\\\"]pageLoad['\\\"]: 5000}
... LOG 2:5 DEBUG REGEXP: POST http://localhost:\\d{2,5}/session/[a-f0-9-]+/timeouts {['\\\"]pageLoad['\\\"]: 5000}
Open Browser To Start Page
Set Selenium Page Load Timeout 5 s
*** Keywords ***
Close Browser And Reset Page Load Timeout
Close Browser
Set Selenium Page Load Timeout 5 minutes
Switch Back To Suite Browser
Switch Browser keywords