From c1be042b9a496b137e102a6b49898e06dd545d32 Mon Sep 17 00:00:00 2001 From: romanschenk37 <84532681+romanschenk37@users.noreply.github.com> Date: Sun, 13 Mar 2022 08:06:03 +0100 Subject: [PATCH] changed timesleep, because wrong urls are saved --- Main.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Main.py b/Main.py index 722a829..8c13fc2 100644 --- a/Main.py +++ b/Main.py @@ -60,6 +60,7 @@ def search_adresses(adress_list, filename_adresslist, driver): break if(found): + time.sleep(2) # TODO: Validation url = driver.current_url eignung = driver.find_element(By.ID, "eignung") @@ -108,7 +109,7 @@ def search_adresses(adress_list, filename_adresslist, driver): w = x + size["width"] h = y + size["height"] - 100 area = (x, y, w, h) - time.sleep(2) + time.sleep(1) driver.save_screenshot("screenshots/" + image_filename) time.sleep(0.2) Image.open("screenshots/" + image_filename).crop(area).save("screenshots/" + image_filename)