0

尝试阅读下表。

<div class="well" style="background-color: #fff;">
                <table class="table table-bordered table-striped table-condensed">
                    <tbody><tr>
                        <td style="width: 20%; vertical-align: middle">
                            <span class="label label-primary">Field0</span>
                        </td>
                        <td>Value0</td>
                    </tr>
                    <tr>
                        <td style="width: 120px;">Field1</td>
                        <td>Value1</td>
                    </tr>
                    <tr>
                        <td><strong>Field2</strong></td>
                        <td>Value2</td>
                    </tr>
                  </tbody>
                </table>
    </div>

但是,当我尝试单独获取每个值时,我被卡住了。

     "return $$('.well').get(0).all(by.tagName('td')).get(0).getText();"
4

0 回答 0