使用Python進行自動化測試如何切換窗口
1 回答

胡子哥哥
TA貢獻1825條經驗 獲得超6個贊
把這行代碼先注釋掉all_handles=self.driver.window_handles
self.driver.switch_to.window(all_handles[1])改成
self.driver.switch_to.window(driver.window_handles[1])
添加回答
舉報
0/150
提交
取消