Reputation: 1
I have a Tab called Information .i need to click on Information Tab. the same xpath is working for other scenario Which has same information tab with same html code When i Am trying use that xpath in other scenario getting no Such Element Found Exception.
Please help me to resolve this issue
xpath :
xpath=//h3[text()='Information']
HTML :
<div class="header" >
<h3>
<i class="icon icon-openclose"/>
Information
</h3>
Upvotes: 0
Views: 102
Reputation: 193338
As per the HTML you have shared if you observe the text Information , it is within the <h3>
tag. So you can use xpath
as :
//h3[normalize-space()='Information']
Upvotes: 1
Reputation: 119
1.Try by giving some wait time before click "Information" tab.
2.Make sure it comes under the frame or not.
3.Analyse the page HTML code that it does not have the same h3 with information text.
Upvotes: 1