tags:

views:

49

answers:

1

Hello..

I have never used Watin before today. I need to get a collection of 'li' elements that are within a 'div'

<div id="myDiv">
  <ul>
    <li>a</li>
    <li>b</li>
    <li>c</li>
  </ul>
</div>

I only want the li elements within the div id='myDiv'..

Thanks for any help!

+3  A: 

Got it..

var liList = _browser.Div("myDiv").ElementsWithTag("li");
Nick