用Python上传Selenium文件 [英] Upload file with Selenium in Python

查看:242
本文介绍了用Python上传Selenium文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有可能在Python脚本中使用selenium上传文件附件?

解决方案

页面,我认为这是很简单的填写输入值,并提交表单与硒python api。您可以在文档页面上找到一些示例代码。


Is it possible to upload file attachment with selenium in Python script?

解决方案

If there is a form with file input on the page, I think it's straightforward to fill value in the input and submit the form with python api of selenium. You can find some sample code on the document page

这篇关于用Python上传Selenium文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆