selenium ide从输入标记中提取文本[值属性]

selenium ide从输入标记中提取文本[值属性],selenium,selenium-ide,Selenium,Selenium Ide,我正在使用SeleniumIDE编写测试用例,并试图提取下面标记的value属性中的内容 <div id="inputcontainer_f-5" class="FGIC" style="max-width:none;"><input type="text" autocomplete="off" name="f-5" id="f-5" class="dummyclass FastEvtFieldFocus" value="TEXT_I_WANT_TO_GET" readonly

我正在使用SeleniumIDE编写测试用例,并试图提取下面标记的value属性中的内容

<div id="inputcontainer_f-5" class="FGIC" style="max-width:none;"><input type="text" autocomplete="off" name="f-5" id="f-5" class="dummyclass FastEvtFieldFocus" value="TEXT_I_WANT_TO_GET" readonly="readonly" spellcheck="true" tabindex="-1" style="">
</div>
结果:我得到了空字符串

回声:“

如果我尝试将xpath更改为
xpath=//input[@id='f-3']/@value
,我将得到以下错误

storeText on xpath=//input[@id='f-5']/@value with value EXTRATCED_CONTENT Failed:
The result of the xpath expression "//input[@id='f-5']/@value" is: [object Attr]. It should be an element.
如何在变量
extracted\u CONTENT
中提取和存储我想要获取的
文本并回显它

谢谢 Jk

试试下面的方法

//input[@id='f-3']@value
试试下面这个

//input[@id='f-3']@value