internet-explorer - 使用 IEAction 避免可见窗口

标签 internet-explorer autoit

我很难隐藏 _IEAction($oIE_Input, "click") 的新窗口创建。编码:

$oIE = _IECreate("mypage")
Sleep(20000)
$oIE_Input= _IEGetObjById($oIE, "the button")
_IEAction($oIE_Input, "click")
Sleep(20000)
_IEQuit($oIE)

当它按下按钮时,Internet Explorer 会打开一个新的可见窗口。如何避免或隐藏打开新窗口?

最佳答案

也许您可以在后台启动整个 IE session 。看看 _IECreate 参数。

浏览器窗口被隐藏

$sUrl [optional] specifies the Url to navigate to upon creation 
$iTryAttach [optional] specifies whether to try to attach to an existing window
    0 = (Default) do not try to attach
    1 = Try to attach to an existing window 
$iVisible [optional] specifies whether the browser window will be visible
    0 = Browser Window is hidden
    1 = (Default) Browser Window is visible 
$iWait [optional] specifies whether to wait for page to load before returning
    0 = Return immediately, not waiting for page to load
    1 = (Default) Wait for page load to complete before returning 
$iTakeFocus [optional] specifies whether to bring the attached window to focus
    0 = Do not bring window into focus
    1 = (Default) bring window into focus 

关于internet-explorer - 使用 IEAction 避免可见窗口,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/43076504/

相关文章:

internet-explorer - 在 watin 测试期间 IE 实例未停止的 Team City 问题

internet-explorer - 哪种模式与JSP交叉兼容

AutoIT GUICtrlSetState/GUICtrlGetState 设置状态与获取状态不同

AutoIt:在鼠标指针下查找窗口

java - 如何使用AutoIt上传多个文件?

windows - 如果在有限的时间内按键三次,则自动运行功能

internet-explorer - IE10 没有为最大宽度和最小宽度使用正确的优先级

css - HTML5 在 Internet Explorer 11 中不工作

.net - 以编程方式将受信任的站点添加到 Internet Explorer

soapui - 我们可以使用 AutoIT 自动将请求发送到 SOAP UI 窗口中的 Web 服务吗