jason 2 vuotta sitten
vanhempi
commit
45c2d1ca10
1 muutettua tiedostoa jossa 1 lisäystä ja 2 poistoa
  1. 1 2
      website_clickjobs/tools/resetrouter.py

+ 1 - 2
website_clickjobs/tools/resetrouter.py

@@ -112,8 +112,7 @@ def run_once():
     options.add_argument("--disable-dev-shm-usage")
     options.add_argument("--incognito")
     print('before init')
-    os.system('taskkill /f /im msedge.exe')
-    os.system('taskkill /f /im chrome.exe')
+    os.system('killall -9 chrome.exe')
     driver = webdriver.Chrome(options=options)
     print('after init')