【发布时间】:2020-05-17 20:30:21
【问题描述】:
${get_t}= Get Text //h6[@class='MuiTypography-root MuiTypography-subtitle2']
Log ${get_t}
${get_t1}= Get Element Count xpath://h6[@class='MuiTypography-root MuiTypography-subtitle2']
Log ${get_t1}
${get_t3}= Get WebElements xpath://h6[@class='MuiTypography-root MuiTypography-subtitle2']
Log ${get_t3}
当我得到 Count 时,它会显示计数,但是当我使用 Get WebElements 打印它时,它不会打印文本。如果我给 Get Text 它会单独打印第一个文本。
【问题讨论】:
标签: python selenium selenium-webdriver robotframework robotframework-ide