Добрый день.
Возник следующий вопрос.
На сайте есть таблица с записями следующего вида:
Name Count
text1 15
text2 6
text3 0
...
строки сортируются по значению Count.
Как узнать значение Count для text2 (например) и записать это значение в переменную?
Это нужно для того что бы в последствии организовать цикл на основе этого значения.
Использую Selenium RC.
Ниже привожу часть исходного кода таблицы.
<div class="pbBody">
<table class="list" cellspacing="0" cellpadding="0" border="0">
<tbody>
<tr class="headerRow">
<th class="" scope="col">Name</th>
<th class="numericalColumn" scope="col">Count</th>
</tr>
<tr class="dataRow even first" onmouseover="if (window.hiOn){hiOn(this);}" onmouseout="if (window.hiOff){hiOff(this);}" onfocus="if (window.hiOn){hiOn(this);}" onblur="if (window.hiOff){hiOff(this);}">
<th class=" dataCell " scope="row">Text1</th>
<td class=" dataCell numericalColumn">100,692</td>
</tr>
<tr class="dataRow odd" onmouseover="if (window.hiOn){hiOn(this);}" onmouseout="if (window.hiOff){hiOff(this);}" onfocus="if (window.hiOn){hiOn(this);}" onblur="if (window.hiOff){hiOff(this);}">
<th class=" dataCell " scope="row">Text2</th>
<td class=" dataCell numericalColumn">3,597</td>
</tr>
<tr class="dataRow even" onmouseover="if (window.hiOn){hiOn(this);}" onmouseout="if (window.hiOff){hiOff(this);}" onfocus="if (window.hiOn){hiOn(this);}" onblur="if (window.hiOff){hiOff(this);}">
...
<tr class="dataRow odd" onmouseover="if (window.hiOn){hiOn(this);}" onmouseout="if (window.hiOff){hiOff(this);}" onfocus="if (window.hiOn){hiOn(this);}" onblur="if (window.hiOff){hiOff(this);}">
...
</tbody>
</table>
</div>
Заранее спасибо.