如何从 Robot Framework 中的输入字段获取文本?

How to get the text from input field in Robot Framework?

我试图将此属性获取为 -

 @{locator2}=     Get Webelements     //*[@class='ng-untouched ng-pristine ng-valid']/div/input
 ${SSOInputDatalist}=       Create List
 FOR   ${locator}   IN    @{locator2}
       ${inputs}=   get element attribute    ${locator}
       Append To List  ${SSOInputDatalist}  ${inputs}
 END

每次失败并且returns关键字SeleniumLibrary.Get Element Attribute' expected 2 arguments, got 1

您使用的不正确。

Get Element Attribute    locator   attribute  

${input_value}   get element attribute    ${locator}      value
${input_name}   get element attribute     ${locator}      name