wangkun 2 vuotta sitten
vanhempi
commit
be0f7d5652
1 muutettua tiedostoa jossa 2 lisäystä ja 1 poistoa
  1. 2 1
      shipinhao/shipinhao_search/shipinhao_search.py

+ 2 - 1
shipinhao/shipinhao_search/shipinhao_search.py

@@ -278,7 +278,8 @@ class ShipinhaoSearch:
         driver.press_keycode(AndroidKey.ENTER)
         driver.press_keycode(AndroidKey.ENTER)
         # driver.find_elements(By.ID, 'com.tencent.mm:id/oi4')[0].click()
         # driver.find_elements(By.ID, 'com.tencent.mm:id/oi4')[0].click()
         Common.logger(log_type, crawler).info("点击搜索,进入搜索页")
         Common.logger(log_type, crawler).info("点击搜索,进入搜索页")
-        driver.find_elements(By.ID, 'com.tencent.mm:id/oi4')[0].click()
+        # driver.find_elements(By.ID, 'com.tencent.mm:id/oi4')[0].click()
+        driver.find_elements(By.ID, 'com.tencent.mm:id/br8')[0].click()
         time.sleep(5)
         time.sleep(5)
 
 
         # 切换到微信搜索结果页 webview
         # 切换到微信搜索结果页 webview