topological-nodered-wdio 0.2.6 → 0.2.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 CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "topological-nodered-wdio",
3
3
  "description": "Open source WebdriverIO nodes for Node-RED",
4
- "version": "0.2.6",
4
+ "version": "0.2.7",
5
5
  "author": "topological",
6
6
  "license": "MIT",
7
7
  "repository": {
@@ -19,7 +19,7 @@ module.exports = function(RED) {
19
19
  node.log = 'Get the url of the web page.'
20
20
  msg.payload = await browser.getUrl()
21
21
  } else if (config.action === 'navigateTo') {
22
- node.log = `Navigate to the "${url}".`
22
+ node.log = `Navigate to url: "${url}".`
23
23
  await browser.navigateTo(url)
24
24
  } else if (config.action === 'back') {
25
25
  node.log = 'Go to previous page (browser back feature).'
@@ -146,6 +146,6 @@ module.exports.log = async (node) => {
146
146
  let context = node.context()
147
147
  let stepCount = await (context.global.get('stepCount') || 0) + 1
148
148
  let document = await context.global.get('document') || ''
149
- await context.global.set('document', `${document}\n${stepCount}. Node: ${node.name} - \t${node.log}`)
149
+ await context.global.set('document', `${document}\n${stepCount}. Node: ${node.name} - ${node.log}`)
150
150
  await context.global.set('stepCount', stepCount)
151
151
  }