【发布时间】:2021-09-04 18:09:15
【问题描述】:
我有一个新任务,我需要先获取生成的表,然后从该表中,我需要验证表的奇数行
到目前为止,这是我的脚本
${Count} get element count ${Accounting_Table_Row}
FOR ${i} IN RANGE 999999
Exit For Loop If ${i} == ${Count}
${M} get text
xpath=//div/[@id'GeneratedTable']/table/tr[${count}]
Run Keyword if "${M}" != "0" fail transaction is not validated ELSE pass execution
transaction is validated
END
我得到了所有生成的表,但我只需要奇数行表。我怎样才能得到它?
【问题讨论】:
标签: for-loop selenium-webdriver robotframework