使用AutoIt从IE浏览器下载文件时,我无法激活此弹出窗口。
我尝试在python中使用以下代码行,但无法识别弹出窗口。
import autoit as au
au.win_activate("File Download")
出现以下错误
Traceback (most recent call last):
File "<ipython-input-2-b726712e3890>", line 11, in <module>
au.win_activate("File Download")
File "C:\HOMEWARE\Anaconda3-Windows-x86_64\lib\site-packages\autoit\autoit.py", line 84, in wrapper
raise AutoItError(err_msg)
AutoItError: activate window failed, maybe the window doesn't exist