mirror of
https://github.com/Second-Hand-Friends/kleinanzeigen-bot.git
synced 2026-03-12 10:31:50 +01:00
Fixes #220
This commit is contained in:
committed by
Sebastian Thomschke
parent
0841b7c4db
commit
7b713095c3
@@ -522,7 +522,10 @@ class KleinanzeigenBot(SeleniumMixin):
|
||||
#############################
|
||||
price_type = ad_cfg["price_type"]
|
||||
if price_type != "NOT_APPLICABLE":
|
||||
self.web_select(By.XPATH, "//select[@id='price-type-react' or @id='micro-frontend-price-type' or @id='priceType']", price_type)
|
||||
try:
|
||||
self.web_select(By.XPATH, "//select[@id='price-type-react' or @id='micro-frontend-price-type' or @id='priceType']", price_type)
|
||||
except NoSuchElementException:
|
||||
pass
|
||||
if safe_get(ad_cfg, "price"):
|
||||
self.web_input(By.XPATH, "//input[@id='post-ad-frontend-price' or @id='micro-frontend-price' or @id='pstad-price']", ad_cfg["price"])
|
||||
|
||||
|
||||
Reference in New Issue
Block a user