title: SELENIUM: how to check if a particular text is present in a particular attribute of HTML tag
body: <p>I have a HTML tags: </p>
  
  <pre><code>&lt;a href="rid=7059"&gt; abc &lt;/a&gt;
  &lt;a href="pid=8059"&gt; fgh &lt;/a&gt;
  &lt;a href="cid=9059"&gt; cxq &lt;/a&gt;
  </code></pre>
  
  <p>HOw do I check if a particular tag exists with the <code>href</code> attribute containing <code>rid</code> (First tag in the above example)</p>
  
  <p><code>get_attribute()</code> gets the value of a specified attribute but how do i check when in a page any such tag exists whose attribute value is <code>rid</code> ?</p>
  
  <p>Thanks for the help.</p>