Browse Source

Bug fix for scroll down

naibo 2 years ago
parent
commit
8c7fc02cef
1 changed files with 4 additions and 0 deletions
  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: