selenium报错TypeError: ‘Alert’ object is not callable解决办法 参考:https://stackoverflow.com/questions/25605018/object-is-not-callable-error-while-using-selenium-python Alert object is not callable? Then you should stop calling it. So modify browser.switch_to.alert().accept() to browser.switch_to.alert.accept() (So remove the () after alert).