wangkun 2 years ago
parent
commit
11d9c302b5
1 changed files with 3 additions and 0 deletions
  1. 3 0
      main/shipinhao_get_url.py

+ 3 - 0
main/shipinhao_get_url.py

@@ -44,6 +44,9 @@ class GetUrl:
         print('退出')
         driver.quit()
 
+        windows = driver.window_handles
+        driver.switch_to.window(windows[0])
+
     @classmethod
     def get_url(cls, log_type):
         try: