我的脚本仅通过远程连接工作,autoit.send在本地不工作

时间:2019-06-26 06:34:06

标签: python autoit

我正在尝试执行将用户名和密码自动插入Windows安全弹出窗口的python脚本,但是该脚本仅在我从远程连接连接到PC时有效,当我在本地执行脚本时不起作用

browser = webdriver.Ie(capabilities=cap, executable_path=r'C:\Users\ccduser\Desktop\IEDriverServer_x64_3.14.0\IEDriverServer.exe')
browser.get("my website")
browser.find_element_by_xpath("//input[@type='submit']").click()

autoit.win_wait("Windows Security",60)

autoit.control_send("{TAB}")
autoit.control_send('aaa')
autoit.control_send("{!}")
autoit.control_send('bbb')
autoit.control_send("{ENTER}")

0 个答案:

没有答案
相关问题