title: Verifying child elements under a specific class in Selenium Web Driver (Code in C#)
body: <p>I have an Options field in my website where there are two child options. One is Change Password and other is Logout. I want to verify whether this two options are available there in a sequential order. Which mean the first option should be Change Password and the second option should be Logout. Here is the HTML of that portion:</p>
  
  <pre><code>&lt;div class="user-options-container"&gt;
  &lt;div class="user-options-header"&gt;OPTIONS&lt;/div&gt;
  &lt;div class="user-options"&gt;
  &lt;div class="user-options-item" action="changepwd"&gt;Change Password&lt;/div&gt;
  &lt;div class="user-options-item" action="logout"&gt;Logout&lt;/div&gt;
  &lt;/div&gt;
  &lt;/div&gt;
  </code></pre>
  
  <p>How can I achieve that? What I know is I can get them creating a list of IWebElement class and then verify those elements. But, getting confused on how to do that. I am using Selenium Web Driver 2 and C# as my language.</p>