本帖最后由 godsky 于 2014-6-19 11:27 编辑
公司工作网页网址:
http://10.97.87.8:9080/gpm/sheet ... et.do?sheetType=051,remindType=0,_pageNo=1&isSubTask=0(外网打不开)
javascript:;
点击按钮 “处理完成”后 弹出另一个网页 网址变为:http://10.97.87.8:9080/gpm/sheet/ChooseNextTthSheet.do
我用如下代码读不到 弹出网页html源码:#include <IE.au3>
#include <Date.au3>
$UserUrl0 = "http://10.97.87.8:9080/gpm/sheet/ViewAdmissibleTthSheet.do?taskid=_TKI:a01b0146.a9372f50.84a89ef5.32fb711d¤tUrl=/sheet/ListAdmissibleTthSheet.do?sheetType=051,remindType=0,_pageNo=1&isSubTask=0" ; Random(1, 99999)
$sHTML = ""
$file = FileOpen(@ScriptDir &"\EomsHistory" & _NowDate() & ".txt", 9)
$oIE = _IECreate($UserUrl0, 0, 1, 1)
WinSetState(WinGetTitle("[active]") , "", @SW_MAXIMIZE)
_IELoadWait ($oIE)
;点击处理完成
$SubmitButton = _IEGetObjByName($oIE, "button1")
;如果找到按钮,则按下接单提交按钮,否则纪录出错
If $SubmitButton <> 0 Then
_IEAction($SubmitButton, "click")
;FileWriteLine($file, _Now() & "提交保存" & $TempStr1)
Else
;FileWriteLine($file, _Now() &" "& _NowDate()& "日作业计划填写失败")
EndIf
$sHTML = _IEDocReadHTML ($oIE)
;MsgBox(0, "Document Source", $sHTML)
FileWriteLine($file, $sHTML)
$oQuery1 = _IEGetObjByName ($oIE, "faultReasonKinds")
;
点击按钮网页源码:<TD class=td1>受理时间</TD>
<TD class=td2>2014-06-17 18:32:10</TD></TR></TBODY></TABLE></DIV></DIV></TD></TR></TBODY></TABLE><BR><BR>
<TABLE align=center>
<TBODY>
<TR>
<TD class=table-button align=middle><INPUT class=long onclick="choose('2');" value=处理完成 type=button name=button1> <INPUT class=long onclick="choose('16');" value=移交 type=button name=button2> <INPUT class=long onclick="choose('17');" value=分派 type=button name=button3> <INPUT class=long onclick="choose('61');" value=转派代维 type=button name=button3> <INPUT class=long onclick="choose('51');" value=协办 type=button name=button3> <INPUT class=long onclick="choose('49');" value=转交 type=button name=button0> <INPUT class=long onclick="choose('3');" value=驳回 type=button name=button4> <INPUT class=long onclick="choose('10');" value=延期解决申请 type=button name=button6> <INPUT class=long onclick="javascript:window.location='/gpm/sheet/ListUndoTypeTthSheet.do?sheetType=051&remindType=0&_pageNo=1&netTypeUndo=01'" value=返回 type=button name=button7> <INPUT value=_TKI:a01b0146.a9372f50.84a89ef5.32fb711d type=hidden name=taskid><INPUT value=1 type=hidden name=stepid><INPUT value="2014-06-17 17:45:00" type=hidden name=createtime><INPUT value=2 type=hidden name=next></TD></TR></TBODY></TABLE></TD></TR></TBODY></TABLE></TD></TR></TBODY></TABLE></FORM></BODY></HTML>
菜鸟求大大帮忙解决 谢谢 |