@wdio/protocols 5.16.4 → 5.16.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +2 -2
- package/protocols/saucelabs.json +2 -28
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@wdio/protocols",
|
|
3
|
-
"version": "5.16.
|
|
3
|
+
"version": "5.16.7",
|
|
4
4
|
"description": "Utility package providing information about automation protocols",
|
|
5
5
|
"author": "Christian Bromann <christian@saucelabs.com>",
|
|
6
6
|
"homepage": "https://github.com/webdriverio/webdriverio/tree/master/packages/wdio-protocols",
|
|
@@ -27,5 +27,5 @@
|
|
|
27
27
|
"publishConfig": {
|
|
28
28
|
"access": "public"
|
|
29
29
|
},
|
|
30
|
-
"gitHead": "
|
|
30
|
+
"gitHead": "f85d0659670a517e119fb1987f533a07422f8c15"
|
|
31
31
|
}
|
package/protocols/saucelabs.json
CHANGED
|
@@ -5,32 +5,6 @@
|
|
|
5
5
|
"description": "Get webpage specific log information based on the last page load.",
|
|
6
6
|
"ref": "https://wiki.saucelabs.com/display/DOCS/Custom+Sauce+Labs+WebDriver+Extensions+for+Network+and+Log+Commands#CustomSauceLabsWebDriverExtensionsforNetworkandLogCommands-ExtendedDebuggingTools",
|
|
7
7
|
"examples": [
|
|
8
|
-
[
|
|
9
|
-
"// Get Application Metrics Logs",
|
|
10
|
-
"console.log(browser.getPageLogs('sauce:metrics'));",
|
|
11
|
-
"/**",
|
|
12
|
-
" * outputs:",
|
|
13
|
-
" * {",
|
|
14
|
-
" * \"firstMeaningfulPaint\": 35036.03356,",
|
|
15
|
-
" * \"domContentLoaded\": 35036.122972,",
|
|
16
|
-
" * \"navigationStart\": 35035.833805,",
|
|
17
|
-
" * ...",
|
|
18
|
-
" * }",
|
|
19
|
-
" */"
|
|
20
|
-
],
|
|
21
|
-
[
|
|
22
|
-
"// Get Network Timing Logs",
|
|
23
|
-
"console.log(browser.getPageLogs('sauce:timing'));",
|
|
24
|
-
"/**",
|
|
25
|
-
" * outputs:",
|
|
26
|
-
" * {",
|
|
27
|
-
" * \"loadEventStart\": 622,",
|
|
28
|
-
" * \"loadEventEnd\": 622,",
|
|
29
|
-
" * \"domInteractive\": 359,",
|
|
30
|
-
" * ...",
|
|
31
|
-
" * }",
|
|
32
|
-
" */"
|
|
33
|
-
],
|
|
34
8
|
[
|
|
35
9
|
"// Get Network Logs",
|
|
36
10
|
"console.log(browser.getPageLogs('sauce:network'));",
|
|
@@ -55,7 +29,7 @@
|
|
|
55
29
|
" */"
|
|
56
30
|
],
|
|
57
31
|
[
|
|
58
|
-
"// Get Performance Logs (
|
|
32
|
+
"// Get Performance Logs (needs capturePerformance capability see: https://wiki.saucelabs.com/display/DOCS/Measure+Page+Load+Performance+Using+Test+Automation#MeasurePageLoadPerformanceUsingTestAutomation-EnableYourScript)",
|
|
59
33
|
"console.log(browser.getPageLogs('sauce:performance'));",
|
|
60
34
|
"/**",
|
|
61
35
|
" * outputs:",
|
|
@@ -71,7 +45,7 @@
|
|
|
71
45
|
"parameters": [{
|
|
72
46
|
"name": "type",
|
|
73
47
|
"type": "string",
|
|
74
|
-
"description": "log type (e.g.
|
|
48
|
+
"description": "log type (e.g. sauce:network', 'sauce:performance')",
|
|
75
49
|
"required": true
|
|
76
50
|
}],
|
|
77
51
|
"returns": {
|