wangkun 1 year ago
parent
commit
603e00a253
1 changed files with 2 additions and 2 deletions
  1. 2 2
      shipinhao/shipinhao_search/shipinhao_search.py

+ 2 - 2
shipinhao/shipinhao_search/shipinhao_search.py

@@ -195,8 +195,8 @@ class ShipinhaoSearch:
         driver = webdriver.Remote("http://localhost:4723/wd/hub", caps)
         driver.implicitly_wait(10)
         Common.logger(log_type, crawler).info("点击微信")
-        if len(driver.find_elements(By.ID, 'android:id/text1')) != 0:
-            driver.find_elements(By.ID, 'android:id/text1')[0].click()
+        # if len(driver.find_elements(By.ID, 'android:id/text1')) != 0:
+        #     driver.find_elements(By.ID, 'android:id/text1')[0].click()
         Common.logger(log_type, crawler).info("等待 5s")
         time.sleep(5)
         cls.search_video(log_type=log_type,