When importing protrator in an Angualr application I try to use the function browser.waitForAngularEnabled
.
When I run the code I get the error:
E/launcher - Error: TypeError: Cannot read property 'waitForAngularEnabled' of undefined
I am importing the browser in this way
const { browser } = require('protractor');
When I click through to the protractor module in VS code I can see the browser object in there but in runtime this error is thrown.