Xpath to verify the text having a br tags

Share on Facebook0Share on LinkedIn0Share on Google+0Tweet about this on Twitter0Email this to someoneDigg this


<Street>York St <br/> <br/>Sydney<Street>

Xpath to check if the Street tag has the text “Sydney”.

//*[text()[contains(.,'Sydney')]]


Leave a Reply

Your email address will not be published. Required fields are marked *