al=driver.switch_to.alert #需要用对象接一下al.accept() #确定al.dismiss() #取消al.send_keys(“xxx”) #输入文字 怎么知道是alert呢?在定位时指不到就是alert