我手动选定 铁血一区(电信区) 后因为循环选定,可以自动回到 请选择区服 但就是不能自动选定其他2项,是不是文字被遮住的原因??老大们帮帮忙。。
#include <IE.au3>
$url1 = "http://zh.sdo.com/web1.0/home/fastlogin.asp?CanScanArea=1010,1024&autoResize=false"
$oIE = _IECreate($url1, 0, 1, 1, 1)
$UserName = _IEGetObjById($oIE, "username")
If IsObj($UserName) Then $UserName.value = "xjlx0001"
$PassWord = _IEGetObjById($oIE, "password")
If IsObj($PassWord) Then $PassWord.value = "www110"
_IELinkClickByText($oIE, "登录")
Sleep(3000)
$oForm = _IEFormGetObjByName ($oIE, "form1")
$oSelect = _IEFormElementGetObjByName ($oForm, "LoginServer")
For $i = 1 To 10
_IEFormElementOptionSelect ($oSelect, "请选择区服", 1, "byText")
Sleep(1000)
_IEFormElementOptionSelect ($oSelect, "铁血一区(电信区)", 1, "byValue")
Sleep(1000)
_IEFormElementOptionSelect ($oSelect, "铁血风云(电信区)", 0, 1, "byIndex")
Sleep(1000)
Next |