如何点击相关网页按钮
#include <IE.au3>Sleep (2000)
$oIE = _IECreate ("http://cqgj.12371.gov.cn/course/Course.aspx?id=3260",0,1,1,0)
$oIEname=_IEGetObjByname ($oIE,"点击播放")
_IEAction ($oIEname, "click")
$oIEname.click
针对上面的代码,我需要点击“点击播放”按钮,请教最后两点该怎么写? 我这里报错
>"D:\Tools\AutoIt3\SciTE\..\autoit3.exe" /ErrorStdOut "D:\prj\Au3\mb\demo.au3"
--> IE.au3 V2.4-0 Error from function _IENavigate, $_IEStatus_InvalidObjectType
D:\Tools\AutoIt3\Include\IE.au3 (2348) : ==> The requested action with this object has failed.:
If IsObj($o_object.document.GetElementsByName($s_Id).item($i_index)) Then
If IsObj($o_object.document^ ERROR
>Exit code: 1 Time: 3.181 帮顶,坐等大神
页:
[1]