I
iseek
Unregistered / Unconfirmed
GUEST, unregistred user!
可以填上用户名和密码,但不能提交.
有一段代码是这样的:
var
Doc:IHTMLDocument2;
form:ihtmlformelement;
userinputelement,pwdinputelement:ihtmlinputelement;
begin
doc:=web.document as ihtmldocument2;
userinputelement:=(doc.all.item('username',0) as ihtmlinputelement);
userinputelement.value:='aaa';
pwdinputelement:=(doc.all.item('password',0) as ihtmlinputelement);
pwdinputelement.value:='bbb';
form:=(doc.all.item('login_form',0) as ihtmlformelement);
form.submit;
上面这段代码处理无NAME的情况,对雅虎有用但对搜狗不起作用.
请大虾指教.
有一段代码是这样的:
var
Doc:IHTMLDocument2;
form:ihtmlformelement;
userinputelement,pwdinputelement:ihtmlinputelement;
begin
doc:=web.document as ihtmldocument2;
userinputelement:=(doc.all.item('username',0) as ihtmlinputelement);
userinputelement.value:='aaa';
pwdinputelement:=(doc.all.item('password',0) as ihtmlinputelement);
pwdinputelement.value:='bbb';
form:=(doc.all.item('login_form',0) as ihtmlformelement);
form.submit;
上面这段代码处理无NAME的情况,对雅虎有用但对搜狗不起作用.
请大虾指教.