‘WebDriver‘ object has no attribute ‘switch_to_frame‘

从python39降版本至python37后,switch_to_frame无效,需要修改为

self.driver.switch_to.frame(frame name)

switch_to_default_content()更改为

self.driver.switch_to.default_content()

你可能感兴趣的:(selenium,python)