driver.switch_to.alert # 将焦点切换到弹窗
accept() # 确认 dismiss() # 取消 text # 获取文本 send_keys() #输入内容 driver # 获取当前driver对象 # 示例 driver.switch_to.alert.text