switch_to_window
解决Python+selenium切换作用域时报错'WebDriver' object has no attribute 'switch_to_window'
一、问题描述 selenium切换新网页作用域时,报错:'WebDriver' object has no attribute 'switch_to_window' 问题代码: driver.switch_to_window(driver.window_handles[-1]) 二、问题解决 sel ......