AutoIt的IE相关函数

autoit3 ie.au3 函数之——_IEAttach _IEAttach: Attach to the specified instance of Internet Explorer where the search string sub-string matches (based on the selected mode). 即: 查找第一个存在的符合查找字串子串的IE例子,查找方式基于选择的模式 #include _IEAttach 阅读详情
<script type="text/javascript" src="http://pagead2.googlesyndication.com/pagead/show_ads.js"> </script>

User Defined Function Reference

Below is a list of the user defined functions for catagory: IE Management. Click on a user defined function name for a detailed description.

 

User Defined FunctionDescription
_IE_ExampleDisplay a new browser window pre-loaded with documents to be used in IE.au3 examples or your own testing
_IE_IntroductionDisplay introductory information about IE.au3 in a new browser window
_IE_VersionInfoReturns an array of information about the IE.au3 version
_IEActionPerform any of a set of simple actions on the Browser.
_IEAttachAttach to the first existing instance of Internet Explorer where the search string sub-string matches based on the selected mode.
_IEBodyReadHTMLReturns the HTML inside the <body> tag of the document.
_IEBodyReadTextReturns the Text inside the <body> tag of the document.
_IEBodyWriteHTMLReplaces the HTML inside the <body> tag of the document.
_IECreateCreate an Internet Explorer Browser Window.
_IECreateEmbeddedCreate a Webbrowser object suitable for embedding in an AutoIt GUI with GuiCtrlCreateObj().
_IEDocGetObjGiven any DOM object, returns a reference to the associated document object.
_IEDocInsertHTMLInserts HTML Text in or around an element.
_IEDocInsertTextInserts Text in or around an element.
_IEDocReadHTMLReturns the full HTML source of a document.
_IEDocWriteHTMLReplaces the HTML for the entire document.
_IEErrorHandlerDeRegisterDisable a registered user COM error handler
_IEErrorHandlerRegisterRegister and enable a user COM error handler
_IEErrorNotifySpecifies whether IE.au3 automatically notifies of Warnings and Errors (to the console)
_IEFormElementCheckboxSelectSet the value of a specified form element.
_IEFormElementGetCollectionReturns a collection object variable representing all Form Elements within a given Form.
_IEFormElementGetObjByNameReturns an object reference to a Form Element by name.
_IEFormElementGetValueReturns the value of a given Form Element.
_IEFormElementOptionSelectSet the value of a specified form element.
_IEFormElementRadioSelectSet the value of a specified form element.
_IEFormElementSetValueSet the value of a specified Form Element.
_IEFormGetCollectionReturns a collection object variable representing the Forms in the document or a single form by index.
_IEFormGetObjByNameReturns an object reference to a Form by name.
_IEFormImageClickSimulate a mouse click on an <input type=image>. Match by sub-string match of alt text, name or src.
_IEFormResetReset a specified Form setting the values back to their loaded defaults.
_IEFormSubmitSubmit a specified Form.
_IEFrameGetCollectionReturns a collection object containing the frames in a FrameSet or the iFrames on a normal page or a single Frame or iFrame by index.
_IEFrameGetObjByNameReturns an object reference to a Frame or iFrame by name.
_IEGetObjByIdReturns an object variable by id or name.
_IEGetObjByNameReturns an object variable by name or id.
_IEHeadInsertEventScriptInserts a Javascript into the Head of the document.
_IEImgClickSimulate a mouse click on an image. Match by sub-string match of alt text, name, or src.
_IEImgGetCollectionReturns a collection object variable representing the IMG tags in the document or a single image by index.
_IEIsFrameSetChecks to see if the specified Window contains a FrameSet.
_IELinkClickByIndexSimulate a mouse click on a link by 0-based index (in source order).
_IELinkClickByTextSimulate a mouse click on a link with text sub-string matching the string provided.
_IELinkGetCollectionReturns a collection object containing all links in the document or a single link by index.
_IELoadWaitWait for a browser page load to complete before returning.
_IELoadWaitTimeoutRetrieve or set the current value in milliseconds _IELoadWait will try before timing out.
_IENavigateDirects an existing browser window to navigate to the specified URL.
_IEPropertyGetReturns a select property of the Browser or DOM element.
_IEPropertySetSet a select property of the Browser or DOM element.
_IEQuitClose the browser and remove the object reference to it.
_IETableGetCollectionReturns a collection object variable representing all the tables in a document or a single table by index.
_IETableWriteToArrayReads the contents of a Table into an array.
_IETagNameAllGetCollectionReturns a collection object all elements in the document or document hierarchy in source order or a single element by index.
_IETagNameGetCollectionReturns a collection object of all elements in the object with the specified TagName or a single element by index.
AutoIt操作Dynamic control Id控件 参考: https://www.autoitscript.com/forum/topic/157706-how-can-i-retrieve-a-dynamic-control-id/#comment-1143379 建立AutoIT script文件,任意命名,写入以下内容: ;通过WinGetClassList函数获取窗体中的所有控件名,然后,在IE浏览器中控件动态标识符是以ATL开头的 阅读详情

相关推荐

selenium借用AutoIt 实现上传文件

1、AutoIT介绍      AutoIT是一个类似脚本语言的软件,利用此软件我们可以方便的实现模拟键盘、鼠标、窗口等操作,实现自动化。 2、实现原理      利用AutoIT编写合适的脚本,然后将脚本编译成可执行文件,在自动化实现时,直接调用此脚本实现文件上传。      备注:编写脚本和编译,需要借助AutoIT提供的工具,但是脚本编译成可执行文件后,可以直接使用,不再需要安装Au

Lily_XL的博客 6020

autoitIE浏览器上执行js并拿到返回值

autoitIE浏览器上执行js并拿到返回值一、介绍二、IE扩展三、通过autoitIE浏览器执行js1、拿到浏览器2、编写js3、执行js四、得到返回值五、完整代码六、字符特殊处理—引号嵌套 一、介绍 autoit通常是用来做windows桌面控件的操作的。除此之外还有一些UDF的库扩展其功能。 本文介绍的并不是autoit的基础操作,如果是做桌面控件的操作,请自行百度,教程多如牛毛。 au...

fanqiuhang的博客 1977

AutoIt操作Windows系统上的任意控件

AutoIt入门学习: 使用目的:因为selenium无法做到对安全控件的自动化操作,只能对打开的浏览器元素进行操作,所以需要autoit完成对网银安全控件的调用。 作用:它是一门自动化语言脚本,可以完成GUI上的一些程序调用与操作,比如自动打开百度,在搜索栏输入一些内容,然后点击搜索相关的内容。   控件定义:即Window上窗口中,能够与用户进行交互的按钮,输入框等等组件.一个窗口就是

shb19891的专栏 8461

AutoIt教程资源汇总

alimama_pid="mm_10809884_1047205_2744758"; alimama_titlecolor="0000FF"; alimama_descolor ="000000"; alimama_bgcolor="FFFFFF"; alimama_bordercolor="E6E6E6"; alimama_linkcolor="008000";

Tisty的兵工厂--新Blog:http://www.UbuntuSky.cn 1万+

AUTOIT IE.au3的介绍以及应用

第一讲,介绍一下基本的东西如何打开一个网页,太简单,加点要求1,打开百度,http://www.baidu.com , 在百度搜索里面输入”与 autoit3 亲密接触”,偶的blog;2,窗口我要”800*600”,隐藏工具栏,而且大小不可更改;3,偏执一点,不喜欢”百度一下,你就知道”,那我们改一下”我的百度,我做主”4,状态栏里面显示信息”欢迎访问 与 autoit3 亲密接触 hi.baidu.com/iokey” 5,我不想看到整个过程,我只想看到结果,OK没问题. 首先我们打开一个浏览器,输入百

Christ_sam的专栏 7713

autoit3 ie.au3 函数之——_IEAction

_IEAction: Perform any of a set of simple actions on the Browser. 即: 查找第一个存在的符合查找字串子串的IE例子,查找方式基于选择的模式. #include _IEAction ( ByRef $o_object, $s_action ) 例子: $oIE = _IECreate ("www.baid

ShanDong_Chu 3018

Selenium RC 用AutoIt实现IE里上传和下载窗口的操作

Selenium RC 用AutoIt实现IE里上传和下载窗口的操作 网上瞅见的一篇文章,关于用Selenium RC操作上传、下载对话框的,需要用到第三方的一个软件AutoIt3,还要写一些AutoIt3脚本,然后在Selenium脚本中调用AutoIT3程序并执行AutoIt3脚本,本人没确认过,谁如果哪天用了并成功解决(希望可以解决!),来这告诉大家!~做第一个吃螃蟹的人吧!~ ...

nanfang881026的博客 867

autoit3 ie.au3 函数之——_IEDocGetObj

_IEDocGetObj: Given any DOM object, returns a reference to the associated document object. 即: 给定任意的DOM对象,返回相关文档对象的参考. #include _IEDocGetObj ( ByRef $o_object ) 例子: ; **************

ShanDong_Chu 1420

python+autoit用法

由于目前测试的软件是C/S客户端的,没有办法愉快的用selenium或appium,只好用10年前学习的autoit加上新学了皮毛的python来解决,在此记录一下学习过程遇到的问题和处理方法。 问:为什么用python+autoit而不是单独使用autoit呢? 答:因为autoit没有现成可用的框架,对用例的管理很不方面,而且结果验证全要自己手写msgbox等…… ...

weixin_30887919的博客 2824

autoit3 ie.au3 介绍

2011-05-15 14:10 2961人阅读 评论(1) 收藏 举报 文档ieinput百度buttondreamweaver 第一讲,介绍一下基本的东西 如何打开一个网页,太简单,加点要求 1,打开百度,http://www.baidu.com , 在百度搜索里面输入”与 autoit3 亲密接触”,偶的blog; 2,窗口我要”800*600”,隐藏工具栏,而且大小不可更

ijustcalledtosay的专栏 2012

replace函数计算机,autoit - 使用stringreplace函数随机化文本替换(autoit - randomize text replacement with stringreplac...

autoit - 使用stringreplace函数随机化文本替换(autoit - randomize text replacement with stringreplace function)所以我需要使用stringreplace用autoit替换字符串文本,但我需要随机化输出。我需要的一个例子是Stringreplace($string, "and", {also|as well})我的最...

weixin_42504048的博客 659

UI自动化测试AutoIT工具使用

AutoIT简介 AutoIt 目前最新是v3版本,这是一个使用类似BASIC脚本语言的免费软件,它设计用于Windows GUI(图形用户界面)中进行自动化操作。它利用模拟键盘按键,鼠标移动和窗口/控件的组合来实现自动化任务。而这是其它语言不可能做到或无可靠方法实现的(例如VBScript和SendKeys)。 实现原理: 使用AutoIT下的工具去定位页面外的元素属性值,其次再利用Aut...

qqhuzi36的博客 3504

使用AutoIt实现文件上传

form method="post" action="/TomcatTest/UploadServlet"enctype="multipart/form-data">选择一个文件: <input type="file" name="uploadFile" /> <br />用鼠标拖住工具上的Finder Tool的图标(即图中蓝色圈圈部分)到要识别的控件上,控件的唯一标识信息会显示在工具的左侧部分(图中红框标出的部分)。我们就是利用控件的这些信息,定位控件,编写脚本。脚本编辑运行无误后,将其保存。

weixin_48884558的博客 1287

[AU3]技巧 - 如何用AUTOIT打开网页

也许很多人在使用AUTOIT的时候不知道如何打开网页 或者找不到相关资料,百度也是一堆代码。 比如这样: #include 'ie.au3' $oIE = _IECreate('http://www.baidu.com') 或者这样: Run(@ProgramFilesDir & "\Intern~1\iexplore.exe http://www.baidu.co...

weixin_30443747的博客 1253

AutoIt实现图片上传

1、autoit脚本编辑器输入以下代码 ;Wait 10 seconds for the Upload windows to appear WinWait($CmdLine[1],"",10) ;ControlFocus("title","text",controlID) ControlFocus($CmdLine[1],"","Edit1") ;Set the file name te...

wuyepiaoxue789的博客 687

python autoit上传文件_Python selenium使用autoIT上传附件过程详解

Python selenium使用autoIT上传附件过程详解1.首先打开AutoIt Windows Info 工具,鼠标点击Finder Tool(按住左键不松手),鼠标将变成一个小风扇形状的图标,移动到目标控件上;如图2.通过AutoIt Windows Info 获得以下信息。窗口的title为“打开”,标题的Class为“#32770”。文件名输入框的class 为“Edit”,Inst...

weixin_39521835的博客 625

au3打开html文件,[AU3]技巧 - 如何用AUTOIT打开网页

也许很多人在使用AUTOIT的时候不知道如何打开网页或者找不到相关资料,百度也是一堆代码。比如这样:#include ‘ie.au3‘$oIE= _IECreate(‘http://www.baidu.com‘)或者这样:Run(@ProgramFilesDir & "\Intern~1\iexplore.exe http://www.baidu.com/")感觉都不是很方便,假如IE崩了...

weixin_42501331的博客 995
上一篇: [转]给大学生的18条忠告 多年经验总结
下一篇: 经典总结:英语四六级作文八种常用句型
Xviewee
博客等级 码龄19年 77粉丝 236原创
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值