From 0df2e8b10439e80baac735993308235f2a2ca11a Mon Sep 17 00:00:00 2001 From: Can Kocyigit <60385015+ckocyigit@users.noreply.github.com> Date: Wed, 28 Sep 2022 18:11:26 +0200 Subject: [PATCH] Updating to changes with PriceType and Price. Fixes #106 (#108) Co-authored-by: Can Kocyigit --- kleinanzeigen_bot/__init__.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/kleinanzeigen_bot/__init__.py b/kleinanzeigen_bot/__init__.py index a29f2cb..4c965d4 100644 --- a/kleinanzeigen_bot/__init__.py +++ b/kleinanzeigen_bot/__init__.py @@ -463,9 +463,10 @@ class KleinanzeigenBot(SeleniumMixin): ############################# price_type = ad_cfg["price_type"] if price_type != "NOT_APPLICABLE": - self.web_select(By.XPATH, "//select[@id='priceType']", price_type) + self.web_select(By.XPATH, "//select[@id='price-type-react']", price_type) if safe_get(ad_cfg, "price"): - self.web_input(By.ID, "pstad-price", ad_cfg["price"]) + self.web_click(By.ID, "post-ad-frontend-price") + self.web_input(By.ID, "post-ad-frontend-price", ad_cfg["price"]) ############################# # set description