div对象已经找到,可以尝试修改下生成代码
#include <IE.au3>
$oIE = _IEAttach("http://192.168.5.96:8080/platforms/common!index.do","url")
$Ele = _IETagNameGetCollection($oIE,"DIV",32)
_IEAction($Ele,"click") ;点击
也可以使用刚刚发布的_iequery函数,直接找到span对象,然后点击试试
#include <IE.au3>
#include <IEQuery.au3> ;放在D:\autoit3\Include目录里
;<SPAN class=tree-title>行政部1</SPAN>
$oIE = _IEAttach("http://192.168.5.96:8080/platforms/common!index.do","url")
$oEle = _IEQuery($oIE,"SPAN",'outertext=行政部1,class=tree-title')
If @error Then MsgBox(0,"提示","获取元素失败")
_IEAction($oEle,"click")
iequery.au3 下载地址:
http://www.autoitx.com/forum.php ... mp;page=1#pid404238 |