.個朲綉√ 发表于 2010-7-27 17:44:19

[已解决]中国电信网厅登陆方式的选择,请赐教.

本帖最后由 .個朲綉√ 于 2010-7-27 18:04 编辑

下面是我的代码,为什么无法选择下拉框中的手机号码选项?请高人指点.#include <IE.au3>
$oIE = _IECreate ("http://sh.ct10000.com/v3/loginsuccess_zq.do")
$oForm = _IEFormGetObjByName ($oIE, "LoninForm")
$oSelect = _IEFormElementGetObjByName ($oForm, "loginType")
        _IEFormElementOptionSelect ($oSelect,"手机号码", 1, "byText")
Exit下面的写法也无法选择,抓狂中...#include <IE.au3>
$oIE = _IECreate ("http://sh.ct10000.com/v3/loginsuccess_zq.do")
$oForm = _IEFormGetObjByName ($oIE, "LoninForm")
$oSelect = _IEFormElementGetObjByName ($oForm, "loginType")
        _IEFormElementOptionSelect ($oSelect,"10", 1, "byValue")
Exit

.個朲綉√ 发表于 2010-7-27 17:56:37

我同样的方法,在QQ邮箱就可以用,为啥上海电信不行咧?!#include <IE.au3>
$oIE = _IECreate ("https://mail.qq.com/cgi-bin/loginpage")
$oForm = _IEFormGetObjByName ($oIE, "Form1")
$oSelect = _IEFormElementGetObjByName ($oForm, "aliastype")
        _IEFormElementOptionSelect ($oSelect, "@foxmail.com", 1, "byText")
Exit

.個朲綉√ 发表于 2010-7-27 18:03:35

知道哪出问题了,应该是LoginForm 虽然是小问题,自己发现,真有成就感.
页: [1]
查看完整版本: [已解决]中国电信网厅登陆方式的选择,请赐教.