I am debugging protractor tests in Webstorm. When I add this code:
var title = element(by.xpath('//div[@class="title"]')); title.getText().then(function (text) { console.log(text); }); expect(title.getText()).toEqual('Opportunities');
I type in the desired console text.
How to do this right in the console?
When I add a breakpoint on the line expect 6, part of console.log(text); doesn't print, and I get this output in the console when I try to get elem text:
> title.getText() < ElementFinder > title.getText().then(function (text) { console.log(text); }); < ManagedPromise
Can I find items and print their properties in the debug console?
source share