mirror of
https://github.com/Second-Hand-Friends/kleinanzeigen-bot.git
synced 2026-03-12 18:41:50 +01:00
Fix for #82
This commit is contained in:
@@ -509,14 +509,15 @@ class KleinanzeigenBot(SeleniumMixin):
|
|||||||
# set contact phone
|
# set contact phone
|
||||||
#############################
|
#############################
|
||||||
if ad_cfg["contact"]["phone"]:
|
if ad_cfg["contact"]["phone"]:
|
||||||
try:
|
if self.webdriver.find_element(By.ID, "postad-phonenumber").is_displayed():
|
||||||
if not self.webdriver.find_element(By.ID, "postad-phonenumber").is_enabled():
|
try:
|
||||||
self.webdriver.find_element(By.ID, "phoneNumberVisibility").click()
|
if not self.webdriver.find_element(By.ID, "postad-phonenumber").is_enabled():
|
||||||
pause(2000)
|
self.webdriver.find_element(By.ID, "phoneNumberVisibility").click()
|
||||||
except NoSuchElementException:
|
pause(2000)
|
||||||
# ignore
|
except NoSuchElementException:
|
||||||
pass
|
# ignore
|
||||||
self.web_input(By.ID, "postad-phonenumber", ad_cfg["contact"]["phone"])
|
pass
|
||||||
|
self.web_input(By.ID, "postad-phonenumber", ad_cfg["contact"]["phone"])
|
||||||
|
|
||||||
#############################
|
#############################
|
||||||
# upload images
|
# upload images
|
||||||
|
|||||||
Reference in New Issue
Block a user