;省略代码若干
$oQuery = _IEFormElementGetObjByName ($oForm, "cit")
_IEFormElementSetValue ($oQuery, "xx")
$oQuery = _IEFormElementGetObjByName ($oForm, "tabAccBnk")
_IEFormElementSetValue ($oQuery, "xxx")
_IEImgClick ($oFIE, "Image6", "name",0,0) ;在这里会弹出标准js confirm对话框,并且代码在这里执行阻塞
ConsoleWrite('abc')
$ret = WinWait("Microsoft Internet Explorer")
if $ret == 1 Then
$var = ControlFocus("Microsoft Internet Explorer", '', "Button1")
ConsoleWrite($var)
$var = ControlClick("Microsoft Internet Explorer", '', "Button1")
ConsoleWrite($var)
EndIf
代码为什么会很奇怪的在_IEImgClick时弹出js confirm对话框后就阻塞了,ConsoleWrite('abc') 根本得不到执行,更不用说去关闭对话框 了,搜索官方站也没有能解决,watir倒有方案,起线程来找对话框窗口,autoit里面怎么解决?
[ 本帖最后由 markhu53 于 2009-1-14 20:24 编辑 ] |