I’ve written a code the place it’s going to launch the app, click on on the login button, enter username and password and click on on check in.
After I run this utilizing node 'filename'
it’s working wonderful with no difficulty.
After I run utilizing mocha node_modules/mocha/bin/mocha 'filename'
I get the error I’m not in a position to perceive as to why?
That is the error that I get:
2019-01-02T06:52:42.721Z DEBUG wdio-config: wdio-sync not discovered, working exams asynchronous
/residence/person/newtest/node_modules/webdriverio/src/utils.js:199
(typeof caps['appium-version'] !== 'undefined') ||
^
TypeError: Can't learn property 'appium-version' of undefined
at mobileDetector (/residence/person/newtest/node_modules/webdriverio/src/utils.js:199:21)
at Object.distant (/residence/person/newtest/node_modules/webdriverio/src/index.js:35:29)
at Object. (/residence/person/newtest/test13.js:16:21)
at Module._compile (inside/modules/cjs/loader.js:723:30)
at Object.Module._extensions..js (inside/modules/cjs/loader.js:734:10)
at Module.load (inside/modules/cjs/loader.js:620:32)
at tryModuleLoad (inside/modules/cjs/loader.js:560:12)
at Perform.Module._load (inside/modules/cjs/loader.js:552:3)
at Module.require (inside/modules/cjs/loader.js:659:17)
at require (inside/modules/cjs/helpers.js:22:18)
at /residence/person/newtest/node_modules/mocha/lib/mocha.js:250:27
at Array.forEach ()
at Mocha.loadFiles (/residence/person/newtest/node_modules/mocha/lib/mocha.js:247:14)
at Mocha.run (/residence/person/newtest/node_modules/mocha/lib/mocha.js:576:10)
at Object. (/residence/person/newtest/node_modules/mocha/bin/_mocha:637:18)
at Module._compile (inside/modules/cjs/loader.js:723:30)
at Object.Module._extensions..js (inside/modules/cjs/loader.js:734:10)
at Module.load (inside/modules/cjs/loader.js:620:32)
at tryModuleLoad (inside/modules/cjs/loader.js:560:12)
at Perform.Module._load (inside/modules/cjs/loader.js:552:3)
at Perform.Module.runMain (inside/modules/cjs/loader.js:776:12)
at executeUserCode (inside/bootstrap/node.js:342:17)
at startExecution (inside/bootstrap/node.js:276:5)
at startup (inside/bootstrap/node.js:227:5)
at bootstrapNodeJSCore (inside/bootstrap/node.js:743:3)