[英]Cannot download PDF file in to the specified directory using selenium with python in Firefox browser, pdf file opens in browser window itself
[英]Python file opens up in browser window instead of download prompt
我正在尝试从我的网站下载文件,但是当我通过点击下载文件进行测试时,它会打开网页中的代码,而不是下载它。 顺便说一句,我正在使用Firefox。
<a href="currentage.py">Age calculator I made, where you plug in your birth year.</a>
我知道我可能做了一些非常愚蠢的事情,但是教程告诉我这样做。
在HTML5 download
将做到这一点
<a href="currentage.py" download>Age calculator I made, where you plug in your birth year.</a>
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.