解决方法: 1. 先回到最外层框架 2.进入要定位元素的框架driver.switch_to.default_content()#回到主框架 相关文章: 2021-06-05 2022-12-23 2022-12-23 2021-11-19 2022-12-23 2021-12-17