Python 当元素隐藏时,如何使用send_keys()上载图像?

Python 当元素隐藏时,如何使用send_keys()上载图像?,python,selenium,Python,Selenium,以下是用于上载图像的HTML <input _ngcontent-c23="" accept="image/jpg,image/jpeg,image/png" class="image-uploader" multiple="" pattern="'.jpg,.jpeg,.png'" type="file" hidden=""> 只需使用带有路径的普通发送键即可 driver.find_element_by_xpath("//input[@type='file']").send

以下是用于上载图像的HTML

<input _ngcontent-c23="" accept="image/jpg,image/jpeg,image/png" 
class="image-uploader" multiple="" pattern="'.jpg,.jpeg,.png'" type="file" 
hidden="">

只需使用带有路径的普通发送键即可

driver.find_element_by_xpath("//input[@type='file']").send_keys("Path_of the_file")

你能澄清“元素隐藏”是什么意思吗?元素是否完全不可见,或者它引用的是另一个元素?