Currently, I am developing an automated test to check the functionality of the browser's back button after logging out of an Angular application. To achieve this, I am utilizing a combination of protractor and cucumberjs.
However, when attempting to utilize the command history.back()
, a particular error crops up:
ReferenceError: history is not defined
at World.<anonymous> (/Users/&&&&&/&&&&&/features/step_definitions/browsers.js:62:16)
This clearly indicates that there is an issue in the section where I'm invoking the history.back(); function.
I am now seeking guidance on how to resolve this error or correctly implement a browser back function using cucumber js.