找回密码
 加入
搜索
查看: 1337|回复: 1

[IE类操作] IE 裡面的 CSS點擊

  [复制链接]
发表于 2018-7-24 19:48:03 | 显示全部楼层 |阅读模式
[mw_shl_code=aauto,true]        <div class="menu">
                        <ul id="menuUl"><li class="">a123</li><li>a456</li><li>b123</li><li>b456</li><li>c123</li><li id="webMassage" class="on">站内消息</li><li class="nb">安全退出</li></ul>
                </div>
[/mw_shl_code]

我試了好多種方法都沒辦法成功

我要點b456

_IETagnameGetCollection

_IELinkClickByText

所有能嘗試的都是失敗

有人有成功點擊過CSS的按鈕嗎
 楼主| 发表于 2018-7-25 18:43:24 | 显示全部楼层
已解決. 感謝會員MARS0916
[mw_shl_code=applescript,true]$objs = _IETagnameGetCollection ($oIE ,"li")
   For $obj In $objs
          If $obj.innertext == 'B456' then
              _IEAction($obj,"click")
              ExitLoop
          EndIf
   Next[/mw_shl_code]
您需要登录后才可以回帖 登录 | 加入

本版积分规则

QQ|手机版|小黑屋|AUTOIT CN ( 鲁ICP备19019924号-1 )谷歌 百度

GMT+8, 2024-4-20 02:17 , Processed in 0.072816 second(s), 19 queries .

Powered by Discuz! X3.5 Licensed

© 2001-2024 Discuz! Team.

快速回复 返回顶部 返回列表