OuterHTML code

I have the following html code appearing in outerhtml property:

 

<li ><a  class="visible">1</a></li>

<li ><a >2</a></li>
<li ><a >3</a></li>

 

This works like -  if "class = visible", the button is enabled else disabled. In the above example the 1st button is visible, so I should perform action on 1st button.

 

I pulled "visible" text from the outerhtml, how to pull the associate number (in above case its 1) so that I an perform any action on the visible button?

Parents Reply Children
No Data