您可以遍历以下元素:
${xpath}= Set Variable //div[@id='groupContainer']//li[@]//span${count}= Get Matching Xpath Count ${xpath}${names}= Create List:FOR ${i} IN RANGE 1 ${count} + 1 ${name}= Get Text xpath=(${xpath})[${i}] Append To List ${names} ${name}这种方法有效,但是在有许多匹配项时速度很慢。



