html - selenium ide data structure tree expand -


a few days trying write selenium ide test data structure tree. stuck expanding tree nodes, main thing there lot of treeexpandoicons of same class, no id, text, type , on.

    <tbody> <tr> <td title="control + right arrow key expand row." aria-expanded="false" aria-readonly="true" role="gridcell" tabindex="-1" aria-describedby="restartpagegrid-id" colid="id" class="gridxcell" style="width:auto;min-width:auto;max-width:auto;"> <div class="gridxtreeexpandocell " style="padding-left: 16px;"> <div class="gridxtreeexpandoicon " style="margin-left: 0px;"> <div class="gridxtreeexpandoinner">+</div></div> <div class="gridxtreeexpandocontent gridxcellcontent">1</div> </div> </td> 

there 1 difference between icons, near icon gridxcellcontent number . near , not clickable. maybe know workaround or how solve problem? appreciated.

my selenium ide offers, write this:

<tr>     <td>click</td>     <td>css=div.gridxtreeexpandoicon.</td>     <td></td> </tr> 

but code isn't working.

there few queries have : 1. have tried removing last (.) in css selector ? 2. see "gridxtreeexpandoicon " class has trailing space. aware of using contains in css selectors? 3. have tried using different location strategy ? such xpath, //div[contains(@class,'gridxtreeexpandoicon')]


Comments