While following the guidance provided in the Protractor documentation, I encountered an issue. Upon making the API call, I received an error message stating
ReferenceError: webdriver is not defined
. The only related occurrence I could find was discussed in this thread on Stack Overflow, however, the suggested solution did not work for my situation.
The code snippet in question is as follows:
'Cookie': webdriver.WebDriver.Options.prototype.getCookie('CookieName')
My system is currently using protractor version 1.4.0
.