我刚开始使用AutoIt。我一直在努力使用Internet Explorer点击iframe中的链接。我已经研究了几种方法来实现这一点,但是还没有得到任何结果。
所以这可能是一个简单的问题。如何使用AutoIt单击iFrame中的链接?链接位于第8帧,文本名称为"People“。
有没有人能举个例子?
我想我必须使用_IEFrameGetCollection和_IELinkClickByText。我还设法使用_IEFrameGetCollection识别出我的页面上的总帧数为9。
发布于 2012-06-20 14:50:47
我想我必须使用_IEFrameGetCollection和_IELinkClickByText。我还设法使用_IEFrameGetCollection识别出我的页面上的总帧数为9。
确切地说。你可能想先看看这个答案:Can't retrieve links inside Frame
您的代码将以如下形式结束:
#include <IE.au3>
$URL="http://www.acgme.org/adspublic/"
$MyIExplorer=_IECreate($URL,1,1,1,1)
Local $theFrame = _IEFrameGetCollection($MyIExplorer, 8)
Local $oLinks = _IELinkGetCollection($theFrame)
MsgBox(0, "Link Count", @extended & " links found")https://stackoverflow.com/questions/11103711
复制相似问题