如何使用Delphi检查HTML代码中是否存在输入对象属性值?
there isn't value attribute.
<input name="input1" type="text"/>
there is value attribute.
<input name="input1" type="text" value=""/>
Run Code Online (Sandbox Code Playgroud)
我尝试了以下内容
if WebBrowser1.OleObject.Document.GetElementByID('input1').getAttribute('value')<>nil then
ShowMessage('value attribute is available')
else
ShowMessage('value attribute isn"t available')
Run Code Online (Sandbox Code Playgroud)