question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

protractorWrapper is not a function error

See original GitHub issue

In 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:closed
  • Created 7 years ago
  • Comments:6 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
DavertMikcommented, Jul 27, 2016

Should be fixed in #171 Protractor should be updated now to 4.0.0

0reactions
DavertMikcommented, Jul 27, 2016

Ok, confirmed. Will be fixed on 0.4.0

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found