从python39降版本至python37后,switch_to_frame无效,需要修改为
self.driver.switch_to.frame(frame name)
switch_to_default_content()更改为
self.driver.switch_to.default_content()
从python39降版本至python37后,switch_to_frame无效,需要修改为
self.driver.switch_to.frame(frame name)
switch_to_default_content()更改为
self.driver.switch_to.default_content()