使用 appscript 如何在 Safari 中接受自签名 SSL 证书
我正在尝试自动化一些涉及浏览 https url 的内容。我在 Mac OS X 上将 py-appscript 与 Safari 一起使用。但是,当 Safari 导航到 https URL 时,由于我有自签名证书,它会弹出一个弹出窗口,要求您接受它才能继续。我想不出办法做到这一点。当然,使用签名证书可以解决问题,但我很好奇是否可以通过 appscript 接受或单击 Safari 上的弹出对话框?
I'm trying to automate some stuff which involves browsing to a https url. I'm using py-appscript with Safari on Mac OS X. But when Safari navigates to the https URL, since I have a self-signed certificate, it throws up a popup window which asks you to accept it to continue. I could not figure out a way to do this. Sure using signed certificates will solve the problem but I was curious if it is even possible via appscript to accept or click on the popup dialog boxes on Safari?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
好吧,回答我自己的问题。希望它对某人有用......
Well, answering my own question. Hopefully it'll be useful to someone...