文件上传
input 标签可以直接使用send_keys(文件地址)上传文件
用法:
el = driver.find_element_by_id('上传按钮id')
el.send_keys("文件路径+文件名")
demo, 百度图片上传为例子
from base import *
class Te...
错误信息:
java.lang.ClassCastException: org.apache.catalina.connector.RequestFacade cannot be cast to org.springframework.web.multipart.MultipartHttpServletRequest
...
at sun.reflect.NativeMetho...
错误信息:
java.lang.ClassCastException: org.apache.catalina.connector.RequestFacade cannot be cast to org.springframework.web.multipart.MultipartHttpServletRequest
...
at sun.reflect.NativeMetho...