我尝试在远程服务器上自动执行备份过程,在使用selenium登录网站后,它会启动一个远程windows客户端和一个chrome accept弹出窗口
我设法用pywinauto点击了chrome弹出窗口,但无法找到远程客户端窗口。SWAPY没有窗口的任何下拉选项,此代码:
app = pywinauto.application.Application()
app.connect(title=u'Computer - \\\\Remote', class_name='Transparent Windows Client')
app.Window_(title=u'Computer - \\\\Remote', class_name='Transparent Windows Client').PrintControlIdentifiers()
退货:
Control Identifiers:
Transparent Windows Client - 'Windows Security - \\Remote' (L1702, T282, R2131, B585)
['Windows Security - \\\\RemoteTransparent Windows Client', 'Transparent Windows Client', 'Windows Security - \\\\Remote']
child_window(title="Windows Security - \\Remote", class_name="Transparent Windows Client")
但这并没有给我留下多少工作空间。这是不是意味着我用这种方法不走运?你知道吗
我真的希望自动化能够可靠地运行,而不依赖屏幕上的“单击x和y坐标”之类的方法。谢谢你的帮助。你知道吗
目前没有回答
相关问题 更多 >
编程相关推荐