@@ -61,16 +61,13 @@ Should Be Able To Return Arrays Of Primitives From Async Scripts
61
61
Length Should Be ${result } 0
62
62
63
63
Should Timeout If Script Does Not Invoke Callback
64
- [Documentation] Should Timeout If Script Does Not Invoke Callback
65
- Run Keyword And Expect Error
66
- ... TimeoutException: Message: Timed out waiting for async script result after *
67
- ... Execute Async Javascript return 1 + 2;
64
+ [Documentation] Should Timeout If Script Does Not Invoke Callback
65
+ Run Keyword And Expect Error TimeoutException:* Execute Async Javascript return 1 + 2;
68
66
69
67
Should Timeout If Script Does Not Invoke Callback With A Zero Timeout
70
- [Documentation] Should Timeout If Script Does Not Invoke Callback With A Zero Timeout
71
- Run Keyword And Expect Error
72
- ... TimeoutException: Message: Timed out waiting for async script result after *
73
- ... Execute Async Javascript window.setTimeout(function() {}, 0);
68
+ [Documentation] Should Timeout If Script Does Not Invoke Callback With A Zero Timeout
69
+ Run Keyword And Expect Error TimeoutException:* Execute Async Javascript
70
+ ... window.setTimeout(function() {}, 0);
74
71
75
72
Should Not Timeout If Script Callsback Inside A Zero Timeout
76
73
[Documentation] Should Not Timeout If Script Callsback Inside A Zero Timeout
@@ -79,26 +76,22 @@ Should Not Timeout If Script Callsback Inside A Zero Timeout
79
76
... window.setTimeout(function() { callback(123); }, 0)
80
77
81
78
Should Timeout If Script Does Not Invoke Callback With Long Timeout
82
- [Documentation] Should Timeout If Script Does Not Invoke Callback With Long Timeout
79
+ [Documentation] Should Timeout If Script Does Not Invoke Callback With Long Timeout
83
80
Set Selenium Timeout 0.5 seconds
84
- Run Keyword And Expect Error
85
- ... TimeoutException: Message: Timed out waiting for async script result after *
86
- ... Execute Async Javascript
87
- ... var callback = arguments[arguments.length - 1];
88
- ... window.setTimeout(callback, 1500);
81
+ Run Keyword And Expect Error TimeoutException:* Execute Async Javascript
82
+ ... var callback = arguments[arguments.length - 1]; window.setTimeout(callback, 1500);
89
83
90
84
Should Detect Page Loads While Waiting On An Async Script And Return An Error
91
85
[Documentation] Should Detect Page Loads While Waiting On An Async Script
92
86
... And Return An Error
93
- Set Selenium Timeout 0.1 seconds
94
- Run Keyword And Expect Error
95
- ... WebDriverException: Message: Detected a page unload event; async script execution does not work across page loads*
96
- ... Execute Async Javascript window.location = 'javascript/dynamic';
87
+ Set Selenium Timeout 0.5 seconds
88
+ Run Keyword And Expect Error WebDriverException:* Execute Async Javascript
89
+ ... window.location = 'javascript/dynamic';
97
90
98
91
Should Catch Errors When Executing Initial Script
99
- [Documentation] Should Catch Errors When Executing Initial Script
100
- Run Keyword And Expect Error WebDriverException: Message: you should catch this!*
101
- ... Execute Async Javascript throw Error('you should catch this!');
92
+ [Documentation] Should Catch Errors When Executing Initial Script
93
+ Run Keyword And Expect Error WebDriverException:* Execute Async Javascript
94
+ ... throw Error('you should catch this!');
102
95
#TODO Implement Selenium asynchronous javascript test
103
96
#Should Be Able To Execute Asynchronous Scripts
104
97
# # To Do
0 commit comments