You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
So when I provide the correct API token in following custom-command everything works fine, but when I purposely use a bad Api token I get that type error.
module.exports={'should get messages': async(browser)=>{console.log(awaitbrowser.getEmailBody(112233));browser.assert.expectedInboxCount(4,112233).end();}}
Error Log
→ TypeError
Error while running "getEmailBody" command: [TypeError] instance.reportProtocolErrors is not a function
- writing an ES6 async test case? - keep in mind that commands return a Promise;
- writing unit tests? - make sure to specify "unit_tests_mode=true" in your config.
Stack Trace :
at C:\Users\Mr\AppData\Roaming\npm\node_modules\nightwatch\lib\api\_loaders\command.js:183:60
at processTicksAndRejections (node:internal/process/task_queues:96:5)
Nightwatch.js Version
2.3.3
NPM Version
8.16.0
Node Version
18.7.0
Browser
Chrome 104.0.0
The text was updated successfully, but these errors were encountered:
Description of the bug/issue
So when I provide the correct API token in following custom-command everything works fine, but when I purposely use a bad Api token I get that type error.
Custom Command
Sample test
Error Log
Nightwatch.js Version
2.3.3
NPM Version
8.16.0
Node Version
18.7.0
Browser
Chrome 104.0.0
The text was updated successfully, but these errors were encountered: