I'm trying to match
An error has occurred
in
<div id="someid" class="alert alert-warning">
<button type="button" class="close" data-dismiss="alert">×</button>
An error has occurred
</div>
I tried various combinations of id=someid and //div[@id='someid'] but it keeps matching the "x" in the element.
or tag (if you have control of this), if not the only other way to get the script working would be to use a wildcard in your script at the start of the text you're trying to match, but then it's not really a great test as it means anything could appear before the text
– Jsmith2800 Aug 18 '16 at 08:20