topological-nodered-wdio 0.4.1 → 0.4.2

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.4.1",
4
+ "version": "0.4.2",
5
5
  "author": "topological",
6
6
  "license": "MIT",
7
7
  "repository": {
@@ -27,19 +27,19 @@ module.exports = function (RED) {
27
27
  msg.payload = await element.isDisplayed()
28
28
  } else if (config.check === 'displayedInView') {
29
29
  node.log = `Check the webelement is displayed in view port, identified using ${locateUsing}: "${locateValue}".`
30
- msg.payload = await browser.isDisplayedInViewport()
30
+ msg.payload = await element.isDisplayedInViewport()
31
31
  } else if (config.check === 'enabled') {
32
32
  node.log = `Check the webelement is enabled, identified using ${locateUsing}: "${locateValue}".`
33
33
  msg.payload = await element.isEnabled()
34
34
  } else if (config.check === 'existing') {
35
35
  node.log = `Check the webelement is existing, identified using ${locateUsing}: "${locateValue}".`
36
- msg.payload = await browser.isExisting()
36
+ msg.payload = await element.isExisting()
37
37
  } else if (config.check === 'focused') {
38
38
  node.log = `Check the webelement is focused, identified using ${locateUsing}: "${locateValue}".`
39
39
  msg.payload = await element.isFocused()
40
40
  } else if (config.check === 'selected') {
41
41
  node.log = `Check the webelement is selected, identified using ${locateUsing}: "${locateValue}".`
42
- msg.payload = await browser.isSelected()
42
+ msg.payload = await element.isSelected()
43
43
  }
44
44
  await common.log(node)
45
45
  common.successStatus(node)