1 页面出现跳到其他窗口 switch_to.window(driver.window_handles[])

类方法classmethodpom类模式(类方法classmethodpom类模式)(1)

2 @classmethod标注后 类无需实例化就可调用方法

类方法classmethodpom类模式(类方法classmethodpom类模式)(2)

通过创建类 实现关键字驱动

,