finding highlighted(preselcted) text using xpath or css

Posted by doneright on Stack Overflow See other posts from Stack Overflow or by doneright
Published on 2010-04-09T23:28:12Z Indexed on 2010/04/09 23:33 UTC
Read the original article Hit count: 282

Filed under:
|
|

In following 2 snippets of html code, I'm trying to create xpath or css for finding if span(Element1 in snippet 1 and Element 2 in snippet 2) are highlighted(preselected) when page is loaded

<div id="idc" class="tre">
  <ul id="idCatT_srt_ul" class="abc">
    <li class="treN treB treSelected" title="Element1 title">
      <span class="spclass">Element1</span>
    </li>
  </ul>
</div>
Element 2 Text

© Stack Overflow or respective owner

Related posts about xpath

Related posts about css