Can anyone help me with the following issue I came across. I could not find any solutions for it so far.
I would like to take the text:'You are logged in as' from the following html via XPath,but as there are no HTML tags I could not get the text in any way, I have tried: xpath=//div[@class='div3']/img
, but with no success.
Here is the html:
<body>
<div id="container">
<div id="header">
<div class="div1">
<div class="div2">
<div class="div3" style="background-color: transparent;">
<img style="position: relative; top: 3px;" alt="" src="view/image/lock.png">
You are logged in as
<span>admin</span>
</div>
</div>
<div id="menu"></div>
...