Looking to extract text from an <h3>
element with selenium and javascript?
<div class="title">
<div class="subtitle">
<div id="flhcd1>
<h3>Hello</h3>
<span></span>
</div>
<div class="subtitle2">
</div>
</div>
If you need to store the text 'Hello' in the variable titleText
, using browsermob for test monitoring, this code snippet could be of help.