问题:
driver.switch_to_window()
#出现如下报错:'WebDriver' object has no attribute 'switch_to_window'
解决方案:将下划线改成英文状态下的.
driver.switch_to.window()
问题:
driver.switch_to_window()
#出现如下报错:'WebDriver' object has no attribute 'switch_to_window'
解决方案:将下划线改成英文状态下的.
driver.switch_to.window()