protractorWrapper is not a function error
See original GitHub issueIn codeceptjs/lib/helper/Protractor.js:
protractorWrapper = requireg('protractor').wrapDriver;
“requireg” returns “undefined”, because underneath:
require.resolve('protractor')
returns:
node_modules/protractor/built/browser.js
(and this module in turn exports wrapDriver as “Browser.wrapDriver”).
So,
protractorWrapper = requireg('protractor').Browser.wrapDriver;
actually works, but fails somewhere later in tests.
Not sure how to fix that.
Issue Analytics
- State:
- Created 7 years ago
- Comments:6 (3 by maintainers)
Top Results From Across the Web
Protractor does not recognize function - Stack Overflow
When running my test I receive the error: browser.setlocation is not a function. The protractor website lists browser.setLocation() as a ...
Read more >"protractor_1.$ is not a function" when using imports ... - GitHub
Quick answer: you should use require since these are global objects and are not built at the time you import into your config....
Read more >Using async/await - Protractor - end-to-end testing for AngularJS
We need wrap our asynchronous function with “async”. We can add “await” keyword to each operation that we want our program to wait...
Read more >Protractor does not load the page correctly
1 Answer 1 · I did as you suggested: I disabled the control flow and addeawait to all browser instance. · So you...
Read more >Top 18 Most Common AngularJS Developer Mistakes - Toptal
CSS and HTML are not the biggest concern anymore, in fact, there is no longer just a ... However, the method is actually...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Should be fixed in #171 Protractor should be updated now to 4.0.0
Ok, confirmed. Will be fixed on 0.4.0