问题描述
当我尝试使用sendkeys上传文件时,它没有提示我错误,但是页面显示警告,提示您上传广告时发生了错误。 html在照片中
python:
img='/home/user/directory/photo.jpg'
elm = driver.find_element_by_xpath("//input[@type='file']")
elm.send_keys(img)
页面https://www.milanuncios.com/publicar-anuncios-gratis/
如果python脚本中没有其他选择,可能是由于什么原因。
谢谢大家。
解决方法
暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!
如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。
小编邮箱:dio#foxmail.com (将#修改为@)