I want to retrieve a node if exist if not exist retrieve a different node e.g. h1 if not exist retrieve the h3 node.
this xpath is not working: /.//h1[1]|h3[1]
Document example
<div>
<h3>Example</h3>
</div>
this xpath is not working: /.//h1[1]|h3[1]
Document example
<div>
<h3>Example</h3>
</div>