Updating to changes with PriceType and Price. Fixes #106 (#108)

Co-authored-by: Can Kocyigit <ckocyigit@ck98.de>
This commit is contained in:
Can Kocyigit
2022-09-28 18:11:26 +02:00
committed by GitHub
parent 44c256e19c
commit 0df2e8b104

View File

@@ -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