wangkun 2 years ago
parent
commit
70fb246f8d
1 changed files with 3 additions and 2 deletions
  1. 3 2
      main/zhiqingzongqun_recommend.py

+ 3 - 2
main/zhiqingzongqun_recommend.py

@@ -87,7 +87,8 @@ class Recommend:
                 'enableWebviewDetailsCollection': True,
                 'setWebContentsDebuggingEnabled': True,
                 'recreateChromeDriverSessions': True,
-                'chromedriverExecutable': '/Users/wangkun/Downloads/chromedriver',
+                # 'chromedriverExecutable': '/Users/wangkun/Downloads/chromedriver',
+                'chromedriverExecutable': '/Users/piaoquan/Downloads/chromedriver',
                 "chromeOptions": {"androidProcess": "com.tencent.mm:appbrand0"},
                 # "chromeOptions": {"androidProcess": "com.tencent.mm:tools"},
                 'browserName': ''
@@ -95,7 +96,7 @@ class Recommend:
             driver = webdriver.Remote("http://localhost:4723/wd/hub", caps)
             driver.implicitly_wait(20)
             # 向下滑动页面,展示出小程序选择面板
-            time.sleep(10)
+            time.sleep(20)
             Common.logger(log_type).info('下滑,展示小程序选择面板')
             size = driver.get_window_size()
             driver.swipe(int(size['width'] * 0.5), int(size['height'] * 0.2), int(size['width'] * 0.5),