For development and debugging purposes it would be really good to know what is the full chain of CSS I'm asking in methods like:
divElm.element(by.css("article")).element(by.css("tbody > tr")).then(function(elm) {
// is there a way to know here what is the "CSS chain" of 'elm'?
});
If I debug elm
I see a locator
property with:
locator_: { using: 'css selector', value: 'tbody > tr' },
But that's only the locator of the last element in the chain.
It would be really useful to have all, like: divElm, article, tbody > tr
in this way I'd be able to debug this manually on the page to see if the element really exists or not.
UPDATE: what I really need is, when a Protractor selector expectation fails (e.g. using isPresent() method), the error I get only shows the last selector in the chain. It would be really handy if the whole chain is shown.