mirror of
https://github.com/Second-Hand-Friends/kleinanzeigen-bot.git
synced 2026-03-12 02:31:45 +01:00
fix: publishing without images (#609)
This commit is contained in:
@@ -908,7 +908,7 @@ class KleinanzeigenBot(WebScrapingMixin):
|
|||||||
|
|
||||||
# check for no image question
|
# check for no image question
|
||||||
try:
|
try:
|
||||||
image_hint_xpath = '//*[contains(@class, "ModalDialog--Actions")]//button[contains(., "Ohne Bild veröffentlichen")]'
|
image_hint_xpath = '//button[contains(., "Ohne Bild veröffentlichen")]'
|
||||||
if not ad_cfg.images and await self.web_check(By.XPATH, image_hint_xpath, Is.DISPLAYED):
|
if not ad_cfg.images and await self.web_check(By.XPATH, image_hint_xpath, Is.DISPLAYED):
|
||||||
await self.web_click(By.XPATH, image_hint_xpath)
|
await self.web_click(By.XPATH, image_hint_xpath)
|
||||||
except TimeoutError:
|
except TimeoutError:
|
||||||
|
|||||||
Reference in New Issue
Block a user