I'm having issues debugging my Protractor script in Intellij Idea 14. I followed the Debugger configuration mentioned in protractor/docs/debugging.md and tried putting a break-point against console.log to check the value of lblInvalidLoginMsg object:
it('should do something', function() {
txtEmail.sendKeys("<a href="/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="37565656775644531954585a">[email protected]</a>");
txtPassword.sendKeys("aaaaa");
btnSignIn.click();
lblInvalidLoginMsg.getAttribute('value').then(function(){
console.log("hello");
})
expect(lblInvalidLoginMsg.getAttribute('value')).toEqual('Blah Blah');
});
The problem is that when the breakpoint is encountered, the debugger doesn't show any values. It only displays available methods like getText()
, getID()
, but not the expected values.
The console output looks like this:
lblInvalidLoginMsg.getId()
ElementFinder
lblInvalidLoginMsg.isElementPresent();
webdriver.promise.Promise
Even the "Evaluate" feature is not providing the expected results. Am I missing something here?
Update: I have included a screenshot with my script in Debug mode, debug config, and results from the Protractor console.