这是我的代码:
<div class="table row column" xpath="1">
<div class="table__head">
<div class="table__row">
<div class="table__cell sys-log__col-wrapper sys-log__col-id">
<div class="column small-2 sort_button_wrapper">
<button class="sort-ascending" ng-click="sortBy('Id', false)"></button>
<button class="sort-descending" ng-click="sortBy('Id', true)"></button>
</div>
ID
</div>
<div class="table__cell sys-log__col-wrapper sys-log__col-desc">Description</div>
</div>
</div>
${xpath_1} = //div[@class="table__row"]/div[1]
${xpath_2} = //div[@class="table__row"]/div[2]
我需要将 ID 作为输出,将xpath_1
描述作为xpath_2
. 但是当我尝试获取以下代码的输出时,我得到:
${table_data}= Get Table Cell ${xpath_1}
我为这种方法得到的以下错误
关键字“SeleniumLibrary.Get Table Cell”需要 3 到 4 个参数,得到 1 个。
(或者)
${table_data}= Get Text ${xpath_1}
空白空间将作为此方法的输出
请建议我如何使用机器人框架从上表中获取 ID 和描述作为输出。