I have a question on debugging Protractor script in Intellij Idea 14. I did set up Dubuger configuration per this doc: protractor/docs/debugging.md and tried to debug my code by putting break-point against console.log to check value of lblInvalidLoginMsg object:
it('should do something', function() {
txtEmail.sendKeys("aaa@asd.com");
txtPassword.sendKeys("aaaaa");
btnSignIn.click();
lblInvalidLoginMsg.getAttribute('value').then(function(){
console.log("hello");
})
expect(lblInvalidLoginMsg.getAttribute('value')).toEqual('Blah Blah');
});
The problem is that debugger is showing no values when breakpoint is encountered. Debugger watch just shows me list of available methods i can apply against the object like getText()
, getID()
etc but no values that are expected.
Console output gives something like:
lblInvalidLoginMsg.getId()
ElementFinder
lblInvalidLoginMsg.isElementPresent();
webdriver.promise.Promise
Same goes with "Evaluate" feature. Is there something I am missing?
Updated: Added screenshot with my script in Debug mode + debug config + results from Protractor console.