web自动化测试-第10小节-文件上传弹框处理

反馈:相机那个logo的元素定位就报错了,分别使用了css、xpath定位都没生效,

地址:https://image.baidu.com/

from test_python_selenium.base import Base
import time

class TestUpload(Base):
def test_upload_file(self):
self.driver.get(“https://image.baidu.com/”)
self.driver.maximize_window()
time.sleep(8)
self.driver.find_element_by_css_selector(“.st_camera_on”).click()
time.sleep(8)
# self.driver.

报错:

你定位的是一个不可交互的元素,点击是不可交互的,看错误提示信息