There is a great need today to validate the meta tags and the contents on a website for google indexing and SEO. Here is an example of using Xpath in selenium to verify the meta tags and the contents.
//meta[@id='meta tag id' and @content='Meta tag info.............................']
<tr>
<td>verifyElementPresent</td>
<td>//meta[@id='meta tag id' and @content='Meta tag info.............................'] </td>
<td></td>
</tr>
Submitted by Puddupakkam Pavandeep
Be the first to rate this post
- Currently 0/5 Stars.
- 1
- 2
- 3
- 4
- 5