When using console.log to write detailed messages about the current task expected to be performed by Protractor, I noticed that these messages are appearing on the console before the actual task is executed in the browser. An example of this is:
it('should validate all labels', function() {
....
element.sendKey('name');
console.log('name entered to user input');
...
});
The console log message is displaying even before the page is fully loaded in the browser. How can this issue be addressed?