老是报Error from function _IEFormElementSetValue, $_IEStatus_InvalidDataType
本帖最后由 slzfish 于 2009-6-20 08:44 编辑#include <IE.au3>
$oIE = _IECreate ("passport.wanmei.com/jsp/member/register.jsp",0,1,1,0)
_IEPropertySet ($oIE, "toolbar", 0)
_IEPropertySet ($oIE, "width", 600)
_IEPropertySet ($oIE, "height", 600)
_IEPropertySet ($oIE, "resizable", 0)
$oForm = _IEFormGetObjByName ($oIE, "完美时空")
$oQuery = _IEFormElementGetObjByName ($oForm, "username")
_IEFormElementSetValue ($oQuery,"111111111111111")
$oQuery = _IEFormElementGetObjByName ($oForm, "passwd")
_IEFormElementSetValue ($oQuery, "222222222222")
$oQuery = _IEFormElementGetObjByName ($oForm, "repeatpasswd")
_IEFormElementSetValue ($oQuery,"222222222222")
$oQuery = _IEFormElementGetObjByName ($oForm, "fcmidnumber")
_IEFormElementSetValue ($oQuery,"33333333333333333")
$oQuery = _IEFormElementGetObjByName ($oForm, "fcmtruename")
_IEFormElementSetValue ($oQuery,"44444444444444444")
$oQuery = _IEFormElementGetObjByName ($oForm, "email")
_IEFormElementSetValue ($oQuery,"55555555555555")
$oQuery = _IEFormGetObjByName ($oForm, "register")
_IEFormElementRadioSelect ($oQuery, "1", "ts", 1, "byValue")
$oQuery = _IEFormElementGetObjByName ($oForm, "idnumber1")
_IEFormElementSetValue ($oQuery,"3333333333")
$oQuery = _IEFormGetObjByName ($oForm, "register")
_IEFormElementRadioSelect ($oQuery, "8", "xtnr", 1, "byValue")
$oQuery = _IEFormElementGetObjByName ($oForm, "tgyidnumber_sg")
_IEFormElementSetValue ($oQuery, "80000677912345")
$oQuery = _IEFormGetObjByName ($oForm, "register")
_IEFormElementCheckboxSelect ($oQuery, "1", "protocol1", 1, "byValue")
$oQuery = _IEFormGetObjByName ($oForm, "register")
_IEFormElementCheckboxSelect ($oQuery, "2", "protocol2", 1, "byValue")
实在是找不出哪里的问题了。。。
$oForm = _IEFormGetObjByName ($oIE, "完美时空")这句有问题不好意思,刚才没理解。。。 通过楼上的刺激,我也做了个POST的 看看怎么写的,有源文件吗?
页:
[1]