raj*_*aju 0 selenium robotframework
我是机器人框架的新手。我有一个需要标签的innerHTML 的要求。我尝试过这样的事情
Wait Until Page Contains Element xpath: //div[@id="toast-container"]
${temp_elem} = Set Variable xpath: //div[@id="toast-container"]
Log ${temp_elem}
Run Code Online (Sandbox Code Playgroud)
但这是行不通的。请帮忙
您需要的是使用关键字Get Element Attribute,将定位器传递给元素和目标属性:
${inner html}= Get Element Attribute xpath://div[@id="toast-container"] innerHTML
Run Code Online (Sandbox Code Playgroud)
| 归档时间: |
|
| 查看次数: |
2923 次 |
| 最近记录: |