|
|
楼主 |
发表于 2013-12-27 10:21:29
|
显示全部楼层
通过查看源代码- <select name="typeid" id="typeid">
- <option value="0">分类</option>
- <option value="22">网络通信</option>
- <option value="24">GUI管理</option>
- <option value="26">效率算法</option>
- <option value="31">IE类操作</option>
- <option value="32">图形处理</option>
- <option value="33">AU3基础</option>
- <option value="25">系统综合</option>
- </select>
复制代码 这部分与IE.udf测试例子- #include <IE.au3>
- $oIE = _IE_Example ("form")
- $oForm = _IEFormGetObjByName ($oIE, "ExampleForm")
- $oSelect = _IEFormElementGetObjByName ($oForm, "selectExample")
- For $i = 1 To 10
- _IEFormElementOptionSelect ($oSelect, "Freepage", 1, "byText")
- Sleep(1000)
- _IEFormElementOptionSelect ($oSelect, "midipage.html", 1, "byValue")
- Sleep(1000)
- _IEFormElementOptionSelect ($oSelect, 0, 1, "byIndex")
- Sleep(1000)
- Next
复制代码 中的一致,为什么用同样的代码就可以。
_IEFormElementOptionSelect ($oSelect, 0, 1, "byIndex")
而在这里就不能使用? |
|