Having trouble working this one out, below is the DOM view of my Tree view.
I need to search all 'li' elements within the whole tree for some text, then I need to click the "rtPlus" (+) element inside the the li element that contains the matched text.
div id="TreeView1" class="RadTreeView RadTreeView_Default explorertree>
<ul class="rtUL rtLines">
<li class="rtLI rtFirst">
<li class="rtLI">
<li class="rtLI">
<div class="rtMid">
<span class="rtSp"/>
<span class="rtPlus"/> **click this when test matched **
<img class="rtImg">
<span class="rtIn">
#text **This is the matching text**
<li class="rtLI">
<li class="rtLI">
<li class="rtLI">
<li class="rtLI rtLast">
I'm sure that this can be done with a single XPath query to locate the correct "rtPlus" button and would really appreciate someone suggesting the right approach to this or some sample selenium tests for this component would be good.
Thanks.