From bfca590ac7ab79ca868be4752b92107ce45ae2fc Mon Sep 17 00:00:00 2001 From: Denis Lanz <5640155+DenisLanz@users.noreply.github.com> Date: Tue, 24 May 2022 23:35:21 +0200 Subject: [PATCH] check if street input is enabled (#78) Co-authored-by: DenisLanz --- kleinanzeigen_bot/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kleinanzeigen_bot/__init__.py b/kleinanzeigen_bot/__init__.py index 4313d9f..f9b0dad 100644 --- a/kleinanzeigen_bot/__init__.py +++ b/kleinanzeigen_bot/__init__.py @@ -449,7 +449,7 @@ class KleinanzeigenBot(SeleniumMixin): ############################# # set contact street ############################# - if ad_cfg["contact"]["street"]: + if ad_cfg["contact"]["street"] and self.webdriver.find_element(By.ID, "pstad-street").is_enabled(): self.web_input(By.ID, "pstad-street", ad_cfg["contact"]["street"]) #############################