For development and debugging purposes, it would be very helpful to know what a complete CSS chain is that I set in methods such as:
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 the locator property with:
locator_: { using: 'css selector', value: 'tbody > tr' },
But this is only the locator of the last element in the chain.
It would be very useful to have everything, for example: divElm, article, tbody > tr so I could debug it manually on the page to see if the element really exists or not.
UPDATE : I really need it when the expected selector function does not work (for example, using the isPresent () method), the error I get shows only the last selector in the chain. It would be very convenient if the whole chain is shown.
source share