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
{{ message }}
This repository was archived by the owner on Jul 29, 2024. It is now read-only.
I`m trying to use protractor with plain nodejs (not Typescript) and async functions as test callbacks.
Unfortunately an error appears telling me that these async functions are no functions.
Stacktrace:
1) some test encountered a declaration exception
Message:
Error: async function() {
await browser.get('https://www.google.com');
});
} is not a function
Stack:
Error: async function () {
await browser.get('https://www.sixt-neuwagen.de');
let blub = await ekomi.isDisplayed();
expect(blub).toBe(true);
} is not a function
at validateFunction (/<some>/<path>/projects/protractor/node_modules/jasminewd2/index.js:21:11)
at /<some>/<path>/projects/protractor/node_modules/jasminewd2/index.js:139:16
at Suite.<anonymous> (/<some>/<path>/projects/protractor/specs/index.js:5:5)
at Object.<anonymous> (/<some>/<path>/projects/protractor/specs/index.js:2:1)
at Module._compile (module.js:571:32)
at Object.Module._extensions..js (module.js:580:10)
at Module.load (module.js:488:32)
I`m trying to use protractor with plain nodejs (not Typescript) and async functions as test callbacks.
Unfortunately an error appears telling me that these async functions are no functions.
Stacktrace:
Testsuite:
Reason:
(Taken from jasminewd2 index.js)
Async functions checked with
Object.prototype.toString.call(functionToValidate)evaluate to [object AsyncFunction].Env:
7.7.15.1.12.0.0