trouble finding element on page using xpath or css

Posted by doneright on Stack Overflow See other posts from Stack Overflow or by doneright
Published on 2010-04-28T22:10:50Z Indexed on 2010/04/28 22:17 UTC
Read the original article Hit count: 278

Filed under:
|
|

Guys, I'm trying to write xpath or css to find/click on list element "All" based on known span(in this case SNG NAME below). On page, there are different lists Which can contain same list item called as "All". So we have to identify "All" based on span(in this case SNG NAME below)

can someone shed some light on my issue

<html>
  <head>
    <body>
     <div class="grc_selected">
       <div class ="lbl_selected">
          <span> SNG NAME </span>
       </div>
      <div id="id1" class="cl1">
        <ul id="id_ul">
          <li class="tclass" title="[1] All">
                <img class="treeIcon" src="1/2/3.gif"/>
                <span class="inA">All</span>
          </li>
        </ul>
     </div>
  </body>
 </head>
</html>

© Stack Overflow or respective owner

Related posts about xpath

Related posts about css