首页
学习
活动
专区
圈层
工具
发布
首页
学习
活动
专区
圈层
工具
MCP广场
社区首页 >问答首页 >AutoIt -单击iFrame中的链接

AutoIt -单击iFrame中的链接
EN

Stack Overflow用户
提问于 2012-06-19 22:57:24
回答 1查看 4.8K关注 0票数 1

我刚开始使用AutoIt。我一直在努力使用Internet Explorer点击iframe中的链接。我已经研究了几种方法来实现这一点,但是还没有得到任何结果。

所以这可能是一个简单的问题。如何使用AutoIt单击iFrame中的链接?链接位于第8帧,文本名称为"People“。

有没有人能举个例子?

我想我必须使用_IEFrameGetCollection和_IELinkClickByText。我还设法使用_IEFrameGetCollection识别出我的页面上的总帧数为9。

EN

回答 1

Stack Overflow用户

回答已采纳

发布于 2012-06-20 14:50:47

我想我必须使用_IEFrameGetCollection和_IELinkClickByText。我还设法使用_IEFrameGetCollection识别出我的页面上的总帧数为9。

确切地说。你可能想先看看这个答案:Can't retrieve links inside Frame

您的代码将以如下形式结束:

代码语言:javascript
运行
复制
#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")
票数 3
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/11103711

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档