我是新来robotframework。我有我需要一个标签的innerHTML的要求。我想是这样的
Wait Until Page Contains Element xpath: //div[@id="toast-container"]
${temp_elem} = Set Variable xpath: //div[@id="toast-container"]
Log ${temp_elem}
但是,这是行不通的。请帮忙
你需要的是使用关键字Get Element Attribute
,通过定位器的元素,和目标的属性:
${inner html}= Get Element Attribute xpath://div[@id="toast-container"] innerHTML