【发布时间】:2018-08-27 18:54:12
【问题描述】:
我尝试使用 Selenium WebDriver (Python) 上传文件,但无法上传。 我想把文件上传到这个网站。 https://iotcube.net/process/type/wf1 但是,当我尝试使用“send_keys”发送文件时,它不起作用。
我在 Python 中运行该代码:
driver.find_element_by_id('my-awesome-dropzone').send_keys('FilePath')
如何将文件发送到该网站?帮帮我。
【问题讨论】:
-
这是windows base pop 。它不会由 selenium 处理.. 你可以尝试 AutoIT 进行此操作
-
在 Python 中仅存在
send_keys-method。没有sendKeys。
标签: python selenium selenium-webdriver file-upload selenium-chromedriver