PDA

View Full Version : Select an item from a website tree



xlcior
03-07-2013, 03:56 PM
Can someone please help me figure out how to select an item in a tree? Sample website html below. How would I select the node that is called "Minor League"? I imagine there's a way to do it by using the span id, but I can't figure it out.

Any help is greatly appreciated.



<ul class="filetree treeview" id="tree" style="">

'[[[code trimmed]]]

<li id="cat_RNK_10986_-2" class="lastCollapsable" style="">
<div class="hitarea lastCollapsable-hitarea"></div>
<span title="Saved Leagues" class="folder">
Saved Leagues
</span>
<ul style="">

<li id="cat_RNK_10986_12070" class=" expandable ">
<div class="hitarea expandable-hitarea "></div>
<span class="folder js-search-searchable" title="Archive (4)"> Archive (4) </span>

<ul style="display:none">

<li>
<span id="item_RNK_10986_12070_100583" class="item js-search-searchable">Major League</span> </li>

<li>
<span id="item_RNK_10986_12070_129319" class="item js-search-searchable">Minor League</span> </li>

<li>
<span id="item_RNK_10986_12070_101760" class="item js-search-searchable">Farm League</span> </li>


'[[[code trimmed]]]