title: Selenium Webdriver - Selecting an item in a tree node
body: <p>I'm trying to select certain items in a tree node.  Ideally, I would like to do the following:</p>
  
  <p>1) Select "Child Item One" from the Tree View based on the text of the item.</p>
  
  <p>Here is the HTML of the Tree object:</p>
  
  <pre><code> &lt;div id="form:treeSingle" class="ui-tree ui-widget ui-widget-content ui-corner-all 
            treeMenu" aria-multiselectable="true" role="tree"&gt;
      &lt;ul class="ui-tree-container"&gt;
         &lt;li id="form:treeSingle:0" class="ui-treenode ui-treenode-parent ui-treenode-
                unselected" role="treeitem" data-nodetype="default" data-rowkey="0"&gt;
           &lt;span class="ui-treenode-content ui-tree-selectable" aria-selected="false" 
                         aria-expanded="true"&gt;
              &lt;span class="ui-tree-toggler ui-icon ui-icon-triangle-1-s"/&gt;
            &lt;span/&gt;
            &lt;span class="ui-treenode-label ui-corner-all ui-state-hover"&gt;Top Level 
                       Perm&lt;/span&gt;
            &lt;/span&gt;
               &lt;ul class="ui-treenode-children"&gt;
                  &lt;li id="form:treeSingle:0_0" class="ui-treenode ui-treenode-parent 
                          ui-treenode-selected" role="treeitem" data-
                          nodetype="default" data-rowkey="0_0"&gt;
                      &lt;span class="ui-treenode-content ui-tree-selectable" aria- 
                            selected="true" aria-expanded="true"&gt;
                         &lt;span class="ui-tree-toggler ui-icon ui-icon-triangle-1-s"/&gt;
                      &lt;span/&gt;
                      &lt;span class="ui-treenode-label ui-corner-all ui-state-
                            highlight"&gt;Child Item One&lt;/span&gt;
                      &lt;/span&gt;
  </code></pre>
  
  <p>Any Help is appreciated.</p>