topological-nodered-wdio 0.4.4 → 0.4.5
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 +1 -1
- package/src/dropdown-action.html +11 -7
- package/src/dropdown-action.js +2 -1
package/package.json
CHANGED
package/src/dropdown-action.html
CHANGED
|
@@ -33,10 +33,10 @@
|
|
|
33
33
|
inputs: 1,
|
|
34
34
|
outputs: 1,
|
|
35
35
|
icon: 'white-globe.png',
|
|
36
|
-
label: function() {
|
|
36
|
+
label: function () {
|
|
37
37
|
return this.name || 'dropdown action'
|
|
38
38
|
},
|
|
39
|
-
oneditprepare: function() {
|
|
39
|
+
oneditprepare: function () {
|
|
40
40
|
setDropdownAction()
|
|
41
41
|
}
|
|
42
42
|
})
|
|
@@ -46,10 +46,14 @@
|
|
|
46
46
|
<div class="form-row">
|
|
47
47
|
<label for="node-input-locateUsing"><i class="fa fa-tasks"></i> Locate Method</label>
|
|
48
48
|
<select type="text" id="node-input-locateUsing" style="width:70%;">
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
49
|
+
<option value="id">id</option>
|
|
50
|
+
<option value="name">name</option>
|
|
51
|
+
<option value="className">Class Name</option>
|
|
52
|
+
<option value="css selector">CSS selector</option>
|
|
53
|
+
<option value="link text">Link text</option>
|
|
54
|
+
<option value="partial link text">Partial link text</option>
|
|
55
|
+
<option value="tag name">Tag name</option>
|
|
56
|
+
<option value="xpath" selected>XPath</option>
|
|
53
57
|
</select>
|
|
54
58
|
</div>
|
|
55
59
|
<div class="form-row">
|
|
@@ -118,4 +122,4 @@
|
|
|
118
122
|
<li>Get Value</li>
|
|
119
123
|
</ul>
|
|
120
124
|
</p>
|
|
121
|
-
</script>
|
|
125
|
+
</script>
|
package/src/dropdown-action.js
CHANGED
|
@@ -12,11 +12,12 @@ module.exports = function(RED) {
|
|
|
12
12
|
let locateValue = config.locateValue || msg.locateValue
|
|
13
13
|
|
|
14
14
|
let browser = await common.getBrowser(node.context())
|
|
15
|
-
let
|
|
15
|
+
let locator = await common.getLocator(
|
|
16
16
|
browser,
|
|
17
17
|
locateUsing,
|
|
18
18
|
locateValue
|
|
19
19
|
)
|
|
20
|
+
let element = await browser.$(locator)
|
|
20
21
|
|
|
21
22
|
let text = config.text || msg.text
|
|
22
23
|
let attribute = config.attribute || msg.attribute
|