如何使用 selenium ide 验证第一行中元素的 class?

How can I verify the class of an element in the first row using selenium ide?

如果我有一个具有以下结构的 table,我如何使用 selenium IDE 验证第一个 i 帧是否具有 "fa-star" 的 class?

<thead></thead>
<tbody>

<tr class="odd" role="row">
    <td class="text-center noteworthy-select sorting_1">
        <i class="fa fa-star"></i>
    </td>

您应该能够使用 assertAttribute 命令来验证属性的值。

xpath

assertAttribute| xpath=//tr[@class='odd']/td/i@class|fa fa-start

另请参见this 说明

类似测试用例