linbin Posted August 27, 2014 Share Posted August 27, 2014 Script: #include <IE.au3> $oIE = _IEAttach("some website","url") $oIE = _IEFrameGetObjByName($oIE,"contentFrame") $Ele = _IEGetObjById($oIE,"allProvince") _IEAction($Ele,"click") This script is to click a raido button.(you can't login the website, so I didn't put it in the code.) Code of the BTN <body> <div id="bodyContent"> <form id="searchForm" action="person!list.action" method="get"> <input type="hidden" id="statrBirthday" name="f_GET_birthday"/> <input type="hidden" id="endBirthday" name="f_LET_birthday"/> <div class="ContentTitle" z.name="个人档案卡更新"></div> <div class="ContentTips"> <div> 1.个人档案卡更新可以维护个人档案信息,不包括各类人口计生业务信息; <br/> 2.更新之前,需要输入证件号码或姓名进行查询,建议采用证件号码进行精确查询。 </div> </div> <table class="ContentTable01"> <tr> <td colspan="2"> <span> <input type="radio" id="thisArea" name="divisionType" value="thisArea" /> <label for="thisArea">区域查询 </label> </span> <span> <input type="radio" id="allProvince" name="divisionType" value="allProvince" /> <label for="allProvince">全省查询</label> </span> </td> Console output: --> IE.au3 T3.0-1 Warning from function _IEGetObjById, $_IEStatus_NoMatch (allProvince) --> IE.au3 T3.0-1 Error from function _IEAction(click), $_IEStatus_InvalidDataType what does the error mean? Thanks. Link to comment Share on other sites More sharing options...
Solution linbin Posted August 27, 2014 Author Solution Share Posted August 27, 2014 It works now. don't know why Link to comment Share on other sites More sharing options...
Danp2 Posted August 27, 2014 Share Posted August 27, 2014 You should take a look at _IEFormElementRadioSelect. Latest Webdriver UDF Release Webdriver Wiki FAQs Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now