topological-nodered-wdio 0.2.6

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/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2019 Ruud Senden
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
package/README.md ADDED
@@ -0,0 +1,15 @@
1
+ # node-red-topological-wdio
2
+
3
+ Node Red nodes for [Webdriver IO](https://webdriver.io) test framework. The nodes are similar to nodes (https://flows.nodered.org/node/node-red-contrib-wdio). We created a new project as we are planning to customize needed for our organization.
4
+
5
+ ## Usage
6
+
7
+ The "new session" node creates a Selenium Webdriver session with the configured provider, or local Webdriver server. The session is stored at the Flow level, so can be reused by downstream webdriverIO nodes in the same flow.
8
+
9
+ If any nodes encounter an error, for example unable to locate a given element on a page, an error will be thrown. This can be caught by a global catch node and actioned appropriately.
10
+
11
+ After a flow completes, close the Selenium session using the "delete session" node. Alternatively, when Node Red exits, any open Selenium sessions will be closed.
12
+
13
+ ## Contributing
14
+
15
+ Pull requests are welcomed for bug fixes, new nodes, and new features. Please push your changes in a branch and initiate a Pull Request against master.
@@ -0,0 +1,332 @@
1
+ [
2
+ {
3
+ "id": "b333aac5.8be6a8",
4
+ "type": "tab",
5
+ "label": "Flow 1",
6
+ "disabled": false,
7
+ "info": ""
8
+ },
9
+ {
10
+ "id": "2ae2052c84670f7b",
11
+ "type": "group",
12
+ "z": "b333aac5.8be6a8",
13
+ "name": "Not an example",
14
+ "style": { "fill": "#bfbfbf", "label": true },
15
+ "nodes": [
16
+ "80d7692a0b0a5dae",
17
+ "dbe5078787689019",
18
+ "3d557240da278749",
19
+ "6ca4cf3b1e3156c8",
20
+ "acc978488aa9fd9e",
21
+ "206a1838d1053cc6",
22
+ "21510f1cf2dc4e22",
23
+ "8f550411f523be8d",
24
+ "efe81da4597b7c90"
25
+ ],
26
+ "x": 74,
27
+ "y": 739,
28
+ "w": 792,
29
+ "h": 402
30
+ },
31
+ {
32
+ "id": "3a964070.37941",
33
+ "type": "inject",
34
+ "z": "b333aac5.8be6a8",
35
+ "name": "",
36
+ "repeat": "",
37
+ "crontab": "",
38
+ "once": false,
39
+ "onceDelay": 0.1,
40
+ "topic": "",
41
+ "payload": "",
42
+ "payloadType": "date",
43
+ "x": 100,
44
+ "y": 60,
45
+ "wires": [["2017a5a9.9aa3da"]]
46
+ },
47
+ {
48
+ "id": "e95ea90a.a813d8",
49
+ "type": "debug",
50
+ "z": "b333aac5.8be6a8",
51
+ "name": "",
52
+ "active": true,
53
+ "tosidebar": true,
54
+ "console": false,
55
+ "tostatus": false,
56
+ "complete": "false",
57
+ "x": 430,
58
+ "y": 260,
59
+ "wires": []
60
+ },
61
+ {
62
+ "id": "b670d9f3.134eb8",
63
+ "type": "delete-session",
64
+ "z": "b333aac5.8be6a8",
65
+ "name": "",
66
+ "x": 260,
67
+ "y": 440,
68
+ "wires": [[]]
69
+ },
70
+ {
71
+ "id": "19944fc9.c9237",
72
+ "type": "catch",
73
+ "z": "b333aac5.8be6a8",
74
+ "name": "",
75
+ "scope": null,
76
+ "uncaught": false,
77
+ "x": 240,
78
+ "y": 580,
79
+ "wires": [["3a338a9f.17c156"]]
80
+ },
81
+ {
82
+ "id": "3a338a9f.17c156",
83
+ "type": "debug",
84
+ "z": "b333aac5.8be6a8",
85
+ "name": "",
86
+ "active": true,
87
+ "tosidebar": true,
88
+ "console": false,
89
+ "tostatus": false,
90
+ "complete": "error",
91
+ "targetType": "msg",
92
+ "x": 400,
93
+ "y": 580,
94
+ "wires": []
95
+ },
96
+ {
97
+ "id": "54afd8dd.3df5a8",
98
+ "type": "debug",
99
+ "z": "b333aac5.8be6a8",
100
+ "name": "",
101
+ "active": true,
102
+ "tosidebar": true,
103
+ "console": false,
104
+ "tostatus": false,
105
+ "complete": "false",
106
+ "x": 790,
107
+ "y": 340,
108
+ "wires": []
109
+ },
110
+ {
111
+ "id": "5f57519b.33bc9",
112
+ "type": "element-action",
113
+ "z": "b333aac5.8be6a8",
114
+ "name": "click go",
115
+ "locateUsing": "css selector",
116
+ "locateValue": "#search_button_homepage",
117
+ "action": "click",
118
+ "sendKeys": "",
119
+ "attribute": "",
120
+ "x": 400,
121
+ "y": 340,
122
+ "wires": [["6a3b88d8.2791a"]]
123
+ },
124
+ {
125
+ "id": "a5053d5f.b6a638",
126
+ "type": "browser-action",
127
+ "z": "b333aac5.8be6a8",
128
+ "name": "navigate to",
129
+ "action": "navigateTo",
130
+ "url": "https://duckduckgo.com",
131
+ "width": "",
132
+ "height": "",
133
+ "keysArr": "",
134
+ "x": 431.5,
135
+ "y": 181,
136
+ "wires": [["7e7366f3.e7b74"]]
137
+ },
138
+ {
139
+ "id": "7e7366f3.e7b74",
140
+ "type": "browser-action",
141
+ "z": "b333aac5.8be6a8",
142
+ "name": "get title",
143
+ "action": "getTitle",
144
+ "url": "",
145
+ "width": "",
146
+ "height": "",
147
+ "keysArr": "",
148
+ "x": 234.5,
149
+ "y": 260,
150
+ "wires": [["e95ea90a.a813d8", "1e414894.80c9f7"]]
151
+ },
152
+ {
153
+ "id": "6a3b88d8.2791a",
154
+ "type": "browser-action",
155
+ "z": "b333aac5.8be6a8",
156
+ "name": "get title",
157
+ "action": "getTitle",
158
+ "url": "",
159
+ "width": "",
160
+ "height": "",
161
+ "keysArr": "",
162
+ "x": 570.5,
163
+ "y": 339,
164
+ "wires": [["54afd8dd.3df5a8", "b670d9f3.134eb8"]]
165
+ },
166
+ {
167
+ "id": "1e414894.80c9f7",
168
+ "type": "element-action",
169
+ "z": "b333aac5.8be6a8",
170
+ "name": "send keys",
171
+ "locateUsing": "css selector",
172
+ "locateValue": "#search_form_input_homepage",
173
+ "action": "sendKeys",
174
+ "sendKeys": "hi",
175
+ "object": "str",
176
+ "attribute": "",
177
+ "x": 233,
178
+ "y": 340,
179
+ "wires": [["5f57519b.33bc9"]]
180
+ },
181
+ {
182
+ "id": "2017a5a9.9aa3da",
183
+ "type": "new-session",
184
+ "z": "b333aac5.8be6a8",
185
+ "name": "",
186
+ "webdriverUri": "",
187
+ "webdriverProvider": "",
188
+ "webdriverBrowser": "",
189
+ "logLevel": "error",
190
+ "x": 238,
191
+ "y": 181,
192
+ "wires": [["a5053d5f.b6a638"]]
193
+ },
194
+ {
195
+ "id": "80d7692a0b0a5dae",
196
+ "type": "element-check",
197
+ "z": "b333aac5.8be6a8",
198
+ "d": true,
199
+ "g": "2ae2052c84670f7b",
200
+ "name": "",
201
+ "locateUsing": "xpath",
202
+ "locateValue": "",
203
+ "check": "selected",
204
+ "x": 400,
205
+ "y": 780,
206
+ "wires": [["3d557240da278749"]]
207
+ },
208
+ {
209
+ "id": "dbe5078787689019",
210
+ "type": "inject",
211
+ "z": "b333aac5.8be6a8",
212
+ "d": true,
213
+ "g": "2ae2052c84670f7b",
214
+ "name": "",
215
+ "props": [{ "p": "payload" }, { "p": "topic", "vt": "str" }],
216
+ "repeat": "",
217
+ "crontab": "",
218
+ "once": false,
219
+ "onceDelay": 0.1,
220
+ "topic": "",
221
+ "payload": "",
222
+ "payloadType": "date",
223
+ "x": 180,
224
+ "y": 780,
225
+ "wires": [["80d7692a0b0a5dae"]]
226
+ },
227
+ {
228
+ "id": "3d557240da278749",
229
+ "type": "alert-action",
230
+ "z": "b333aac5.8be6a8",
231
+ "d": true,
232
+ "g": "2ae2052c84670f7b",
233
+ "name": "",
234
+ "action": "accept",
235
+ "sendText": "",
236
+ "x": 610,
237
+ "y": 800,
238
+ "wires": [["6ca4cf3b1e3156c8"]]
239
+ },
240
+ {
241
+ "id": "6ca4cf3b1e3156c8",
242
+ "type": "dropdown-action",
243
+ "z": "b333aac5.8be6a8",
244
+ "d": true,
245
+ "g": "2ae2052c84670f7b",
246
+ "name": "",
247
+ "locateUsing": "xpath",
248
+ "locateValue": "",
249
+ "action": "selectByAttr",
250
+ "text": "",
251
+ "attribute": "",
252
+ "index": "",
253
+ "value": "",
254
+ "x": 520,
255
+ "y": 900,
256
+ "wires": [["efe81da4597b7c90"]]
257
+ },
258
+ {
259
+ "id": "acc978488aa9fd9e",
260
+ "type": "window-action",
261
+ "z": "b333aac5.8be6a8",
262
+ "d": true,
263
+ "g": "2ae2052c84670f7b",
264
+ "name": "",
265
+ "action": "byName",
266
+ "value": "",
267
+ "index": "",
268
+ "x": 400,
269
+ "y": 1040,
270
+ "wires": [["206a1838d1053cc6"]]
271
+ },
272
+ {
273
+ "id": "206a1838d1053cc6",
274
+ "type": "frame-action",
275
+ "z": "b333aac5.8be6a8",
276
+ "d": true,
277
+ "g": "2ae2052c84670f7b",
278
+ "name": "",
279
+ "action": "frame",
280
+ "frame": "",
281
+ "x": 370,
282
+ "y": 1100,
283
+ "wires": [["21510f1cf2dc4e22"]]
284
+ },
285
+ {
286
+ "id": "21510f1cf2dc4e22",
287
+ "type": "execute-script",
288
+ "z": "b333aac5.8be6a8",
289
+ "d": true,
290
+ "g": "2ae2052c84670f7b",
291
+ "name": "",
292
+ "locateUsing": "xpath",
293
+ "locateValue": "",
294
+ "action": "sync",
295
+ "script": "",
296
+ "x": 600,
297
+ "y": 1100,
298
+ "wires": [[]]
299
+ },
300
+ {
301
+ "id": "8f550411f523be8d",
302
+ "type": "explicit-wait",
303
+ "z": "b333aac5.8be6a8",
304
+ "d": true,
305
+ "g": "2ae2052c84670f7b",
306
+ "name": "",
307
+ "locateUsing": "xpath",
308
+ "locateValue": "",
309
+ "action": "",
310
+ "time": "",
311
+ "reverse": "false",
312
+ "error": "",
313
+ "x": 630,
314
+ "y": 1000,
315
+ "wires": [["acc978488aa9fd9e"]]
316
+ },
317
+ {
318
+ "id": "efe81da4597b7c90",
319
+ "type": "implicit-wait-config",
320
+ "z": "b333aac5.8be6a8",
321
+ "d": true,
322
+ "g": "2ae2052c84670f7b",
323
+ "name": "",
324
+ "implicit": "",
325
+ "pageload": "",
326
+ "script": "",
327
+ "action": "",
328
+ "x": 750,
329
+ "y": 920,
330
+ "wires": [["8f550411f523be8d"]]
331
+ }
332
+ ]
Binary file
package/package.json ADDED
@@ -0,0 +1,43 @@
1
+ {
2
+ "name": "topological-nodered-wdio",
3
+ "description": "Open source WebdriverIO nodes for Node-RED",
4
+ "version": "0.2.6",
5
+ "author": "topological",
6
+ "license": "MIT",
7
+ "repository": {
8
+ "type": "git",
9
+ "url": "https://github.com/Topological-dev/topological-nodered-wdio.git"
10
+ },
11
+ "keywords": [
12
+ "node-red",
13
+ "topological"
14
+ ],
15
+ "node-red": {
16
+ "version": ">=2.0.0",
17
+ "nodes": {
18
+ "delete-session": "src/delete-session.js",
19
+ "element-action": "src/element-action.js",
20
+ "new-session": "src/new-session.js",
21
+ "browser-action": "src/browser-action.js",
22
+ "element-check": "src/element-check.js",
23
+ "alert-action": "src/alert-action.js",
24
+ "dropdown-action": "src/dropdown-action.js",
25
+ "window-action": "src/window-action.js",
26
+ "frame-action": "src/frame-action.js",
27
+ "execute-script": "src/execute-script.js",
28
+ "explicit-wait": "src/explicit-wait.js",
29
+ "implicit-wait-config": "src/implicit-wait-config.js"
30
+ }
31
+ },
32
+ "dependencies": {
33
+ "@wdio/allure-reporter": "^7.19.7",
34
+ "@wdio/cli": "^7.19.7",
35
+ "webdriverio": "^7.19.7"
36
+ },
37
+ "publishConfig": {
38
+ "access": "public"
39
+ },
40
+ "engines": {
41
+ "node": ">=12.0.0"
42
+ }
43
+ }
@@ -0,0 +1,79 @@
1
+ <script type="text/javascript">
2
+ function setAlertAction() {
3
+ let action = $('#node-input-action').val()
4
+ $('#actionSendText').hide()
5
+ if (action === 'sendAlertText') {
6
+ $('#actionSendText').show()
7
+ }
8
+ }
9
+
10
+ RED.nodes.registerType('alert-action', {
11
+ category: 'Webdriver IO',
12
+ color: '#a6bbcf',
13
+ defaults: {
14
+ name: { value: '' },
15
+ action: { value: 'accept' },
16
+ sendText: { value: '' }
17
+ },
18
+ inputs: 1,
19
+ outputs: 1,
20
+ icon: 'white-globe.png',
21
+ label: function() {
22
+ return this.name || 'alert action'
23
+ },
24
+ oneditprepare: function() {
25
+ setAlertAction()
26
+ }
27
+ })
28
+ </script>
29
+
30
+ <script type="text/x-red" data-template-name="alert-action">
31
+
32
+ <div class="form-row">
33
+ <label for="node-input-action"><i class="fa fa-tasks"></i> Action</label>
34
+ <select type="text" id="node-input-action" style="width:70%;" onchange="setAlertAction()">
35
+ <option value="dismiss">Dismiss Alert</option>
36
+ <option value="accept">Accept Alert</option>
37
+ <option value="getAlertText">Get Alert Text</option>
38
+ <option value="isPresent">Is Alert Present</option>
39
+ </select>
40
+ </div>
41
+
42
+
43
+ <div class="form-row" id="actionSendText">
44
+ <label for="node-input-sendText"><i class="fa fa-tasks"></i> Text to Send</label>
45
+ <input id="node-input-sendText" type="text">
46
+ </div>
47
+
48
+
49
+ <div class="form-row">
50
+ <label for="node-input-name"><i class="fa fa-tag"></i> Name</label>
51
+ <input id="node-input-name" type="text">
52
+ </div>
53
+ </script>
54
+
55
+
56
+
57
+ <script type="text/x-red" data-help-name="alert-action">
58
+ <h3>Selected action of the node performs on pop-up alerts/windows.</h3>
59
+ <h3>Details</h3>
60
+ <dl class="message-properties">
61
+ <dt>Action: <span class="property-type">select</span></dt>
62
+ <dd>Action to perform on the pop-up alert/window:
63
+ <ul>
64
+ <li>Dismiss Alert</li>
65
+ <li>Accept Alert</li>
66
+ <li>Get Alert Text</li>
67
+ <li>Is Alert Present</li>
68
+ </ul>
69
+ </dd>
70
+ </dl>
71
+
72
+ <h3>Outputs</h3>
73
+ <dl class="message-properties">
74
+ <dt>msg.payload: <span class="property-type">string/bool</span></dt>
75
+ <dd>If the <b>Get Alert Text</b> action is selected, the <code>ms.payload</code> will return the text on the alert message<br></dd>
76
+ <dd>If the <b>Is Alert Present</b> action is selected, <code>ms.payload</code> will return a true/false <code>boolean</code></dd>
77
+ </dl>
78
+
79
+ </script>
@@ -0,0 +1,51 @@
1
+ const common = require('./wdio-common')
2
+
3
+ const isAlertPresent = async (browser) => {
4
+ try {
5
+ await browser.getAlertText()
6
+ return true
7
+ } catch (e) {
8
+ return false
9
+ }
10
+ }
11
+
12
+ module.exports = function(RED) {
13
+ function alertAction(config) {
14
+ RED.nodes.createNode(this, config)
15
+ const node = this
16
+ common.clearStatus(node)
17
+
18
+ node.on('input', async (msg) => {
19
+ try {
20
+ let browser = await common.getBrowser(node.context())
21
+
22
+ let value = msg.value || config.sendText
23
+
24
+ if (config.action === 'dismiss') {
25
+ node.log = 'Dismiss the alert.'
26
+ await browser.dismissAlert()
27
+ } else if (config.action === 'accept') {
28
+ node.log = 'Accept the alert displayed.'
29
+ await browser.acceptAlert()
30
+ } else if (config.action === 'getAlertText') {
31
+ node.log = 'Get the alert text.'
32
+ msg.payload = await browser.getAlertText()
33
+ } else if (config.action === 'sendAlertText') {
34
+ if (await isAlertPresent()) {
35
+ node.log = `Send "${value}" to alert.`
36
+ await browser.sendAlertText(value)
37
+ }
38
+ } else if (config.action === 'isPresent') {
39
+ node.log = 'Verify for an alert.'
40
+ msg.payload = await isAlertPresent(browser)
41
+ }
42
+ await common.log(node)
43
+ common.successStatus(node)
44
+ node.send(msg)
45
+ } catch (e) {
46
+ common.handleError(e, node, msg)
47
+ }
48
+ })
49
+ }
50
+ RED.nodes.registerType('alert-action', alertAction)
51
+ }
@@ -0,0 +1,114 @@
1
+ <script type="text/javascript">
2
+ function setBrowserAction() {
3
+ let action = $('#node-input-action').val()
4
+ $('#actionURL').hide()
5
+ $('#actionWidth').hide()
6
+ $('#actionHeight').hide()
7
+ $('#actionValue').hide()
8
+ if (action === 'setSize') {
9
+ $('#actionWidth').show()
10
+ $('#actionHeight').show()
11
+ }
12
+ if (action === 'navigateTo') {
13
+ $('#actionURL').show()
14
+ }
15
+ if (action === 'keyStorkes') {
16
+ $('#actionValue').show()
17
+ }
18
+ }
19
+
20
+ RED.nodes.registerType('browser-action', {
21
+ category: 'Webdriver IO',
22
+ color: '#a6bbcf',
23
+ defaults: {
24
+ name: { value: '' },
25
+ action: { value: 'navigateTo' },
26
+ url: { value: '' },
27
+ width: { value: '' },
28
+ height: { value: '' },
29
+ keysArr: { value: '' }
30
+ },
31
+ inputs: 1,
32
+ outputs: 1,
33
+ icon: 'white-globe.png',
34
+ label: function() {
35
+ return this.name || 'browser action'
36
+ },
37
+ oneditprepare: function() {
38
+ setBrowserAction()
39
+ }
40
+ })
41
+ </script>
42
+
43
+ <script type="text/x-red" data-template-name="browser-action">
44
+ <div class="form-row">
45
+ <label for="node-input-action"><i class="fa fa-tasks"></i> Action</label>
46
+ <select type="text" id="node-input-action" style="width:70%;" onchange="setBrowserAction()">
47
+ <option value="getUrl">Get URL</option>
48
+ <option value="navigateTo">Navigate To</option>
49
+ <option value="back">Back</option>
50
+ <option value="forward">Forward</option>
51
+ <option value="refresh">Refresh</option>
52
+ <option value="getTitle">Get Title</option>
53
+ <option value="setSize">Set window Size</option>
54
+ <option value="maximize">Maximize Window</option>
55
+ <option value="takeScreenShot">Screenshot</option>
56
+ <option value="pageSource">Get Page Source</option>
57
+ <option value="print">Print</option>
58
+ <option value="keyStrokes">Key Strokes</option>
59
+ <option value="getCookies">Get All Cookies</option>
60
+ </select>
61
+ </div>
62
+ <div class="form-row" id="actionURL">
63
+ <label for="node-input-url"><i class="fa fa-tasks"></i> URL</label>
64
+ <input id="node-input-url" type="text">
65
+ </div>
66
+ <div class="form-row" id="actionWidth">
67
+ <label for="node-input-width"><i class="fa fa-tasks"></i>Width</label>
68
+ <input id="node-input-width" type="text">
69
+ </div>
70
+ <div class="form-row" id="actionHeight">
71
+ <label for="node-input-height"><i class="fa fa-tasks"></i>Height</label>
72
+ <input id="node-input-height" type="text">
73
+ </div>
74
+ <div class="form-row" id="actionValue">
75
+ <label for="node-input-keysArr"><i class="fa fa-tasks"></i> Key Values</label>
76
+ <input id="node-input-keysArr" type="text">
77
+ </div>
78
+ <div class="form-row">
79
+ <label for="node-input-name"><i class="fa fa-tag"></i> Name</label>
80
+ <input id="node-input-name" type="text">
81
+ </div>
82
+ </script>
83
+
84
+ <script type="text/x-red" data-help-name="browser-action">
85
+ <h3>Performs from a list of standard browser actions on the current instance of the browser.</h3>
86
+ <h3>Inputs</h3>
87
+ <dl class="message-properties">
88
+ <dt>action: <span class="property-type">string</span></dt>
89
+ <dd>All the browser actions. Selected action will be performed on the browser.</dd>
90
+ <dt>url: <span class="property-type">string</span></dt>
91
+ <dd>Browser navigates to the provide url when we select the action as "navigateTo"</dd>
92
+ <dd>Can be parameterized using <code>msg.url</code>, by leaving the URL empty on node configuration.</dd>
93
+ <dt>width: <span class="property-type">string</span></dt>
94
+ <dd>Browser window will be adjusted to specified width.</dd>
95
+ <dd>Can be parameterized using <code>msg.width</code>, by leaving the Width empty on node configuration.</dd>
96
+ <dt>height: <span class="property-type">string</span></dt>
97
+ <dd>Browser window will be adjusted to specified height.</dd>
98
+ <dd>Can be parameterized using <code>msg.height</code>, by leaving the Height empty on node configuration.</dd>
99
+ <dt>Key Values: <span class="property-type">string</span></dt>
100
+ <dd>See the list of values as keys. click <a href="https://w3c.github.io/webdriver/#keyboard-actions">here</a>.</dd>
101
+ <dd>A string with , separated key values, which will be converted to an array of strings.</dd>
102
+ <dd>Can be parameterized using <code>msg.keysArr</code>, by leaving the Key Values empty on node configuration.</dd>
103
+ </dl>
104
+
105
+ <h3>Outputs</h3>
106
+ <dl class="message-properties">
107
+ <dt>msg.payload: <span class="property-type">string/Object</span></dt>
108
+ <dd><b>Get URL</b> returns url of the current browser tab<br></dd>
109
+ <dd><b>Get Title</b> returns title of the current browser tab<br></dd>
110
+ <dd><b>Screenshot</b> returns Base64 encode string value of screenshot of open window<br></dd>
111
+ <dd><b>Get Page Source</b> returns entire page source of the document<br></dd>
112
+ <dd><b>Get All Cookies</b> returns all cookies stored at the moment inside of an Object<br></dd>
113
+ </dl>
114
+ </script>