wangkun %!s(int64=2) %!d(string=hai) anos
pai
achega
582460eee1
Modificáronse 1 ficheiros con 2 adicións e 0 borrados
  1. 2 0
      shipinhao/shipinhao_search/shipinhao_search.py

+ 2 - 0
shipinhao/shipinhao_search/shipinhao_search.py

@@ -244,6 +244,8 @@ class ShipinhaoSearch:
         webviews = driver.contexts
         Common.logger(log_type, crawler).info(f"webviews:{webviews}")
         for webview in webviews:
+            if webview == 'NATIVE_APP':
+                continue
             driver.switch_to.context(webview)
             time.sleep(1)
             windowHandles = driver.window_handles