mirror of
https://github.com/Second-Hand-Friends/kleinanzeigen-bot.git
synced 2026-03-12 10:31:50 +01:00
Restore functionality to specify the full ad address (#79)
Co-authored-by: DenisLanz <denis.lanz@gmail.com> Co-authored-by: Sebastian Thomschke <sebthom@users.noreply.github.com>
This commit is contained in:
@@ -449,7 +449,14 @@ class KleinanzeigenBot(SeleniumMixin):
|
|||||||
#############################
|
#############################
|
||||||
# set contact street
|
# set contact street
|
||||||
#############################
|
#############################
|
||||||
if ad_cfg["contact"]["street"] and self.webdriver.find_element(By.ID, "pstad-street").is_enabled():
|
if ad_cfg["contact"]["street"]:
|
||||||
|
try:
|
||||||
|
if not self.webdriver.find_element(By.ID, "pstad-street").is_enabled():
|
||||||
|
self.webdriver.find_element(By.ID, "addressVisibility").click()
|
||||||
|
pause(2000)
|
||||||
|
except NoSuchElementException:
|
||||||
|
# ignore
|
||||||
|
pass
|
||||||
self.web_input(By.ID, "pstad-street", ad_cfg["contact"]["street"])
|
self.web_input(By.ID, "pstad-street", ad_cfg["contact"]["street"])
|
||||||
|
|
||||||
#############################
|
#############################
|
||||||
|
|||||||
Reference in New Issue
Block a user