Hi
I remember some way when you are inspecting with Chrome and you find a web element in the search box you can have it display the text.
I mean you can see the HTML but I want to see what the actual text it would return (for instance if you did an element.getText() in selenimu/Java).
I remember doing that a few years ago, but maybe with Firebug not Chrome? Is there a way?
for instance in this example,
//*[contains(text(),'Text line ')] works, but
//*[contains(text(),'Second')] does not though it seems to me it should.
<div class="text-medium">
Text line 1
<span class="icon-updated"></span>
Second text
<span class="icon-updated"></span>
My third line
<span class="icon-updated"></span>
The fourth line
</div>
I can get the di'v xpath which is
//*[@id='ext-gen1157']/div (can change with each build but I can always find the new id).
So I would like to be able to find this element in the search box in the inspect window and have it show me all the text it thinks has it.
It is this div that
//*[contains(text(),'Text line ')] finds.
I also would like to figure out why
//*[contains(text(),'Second')] (nor trying to find the third and fourth line) finds anything.