Sfoglia il codice sorgente

Bug fix for scroll down

naibo 2 anni fa
parent
commit
8c7fc02cef
1 ha cambiato i file con 4 aggiunte e 0 eliminazioni
  1. 4 0
      ExecuteStage/easyspider_executestage.py

+ 4 - 0
ExecuteStage/easyspider_executestage.py

@@ -416,6 +416,10 @@ class BrowserThread(Thread):
         except:
             pass
         scrollType = int(para["scrollType"])
+        try:
+            para["scrollCount"] = int(para["scrollCount"])
+        except:
+            para["scrollCount"] = 1
         try:
             if scrollType != 0 and para["scrollCount"] > 0:  # 控制屏幕向下滚动
                 if scrollType == 1 or scrollType == 2: