mirror of
https://github.com/Second-Hand-Friends/kleinanzeigen-bot.git
synced 2026-03-12 10:31:50 +01:00
Fixed to much spaces
This commit is contained in:
committed by
Sebastian Thomschke
parent
8880af1be0
commit
0284912757
@@ -507,7 +507,7 @@ class KleinanzeigenBot(SeleniumMixin):
|
|||||||
if not self.webdriver.find_element(By.ID, "buy-now-toggle").is_selected():
|
if not self.webdriver.find_element(By.ID, "buy-now-toggle").is_selected():
|
||||||
self.web_click(By.XPATH, '//*[contains(@class, "BuyNowSection")]//span[contains(@class, "Toggle--Slider")]')
|
self.web_click(By.XPATH, '//*[contains(@class, "BuyNowSection")]//span[contains(@class, "Toggle--Slider")]')
|
||||||
elif self.webdriver.find_element(By.ID, "buy-now-toggle").is_selected():
|
elif self.webdriver.find_element(By.ID, "buy-now-toggle").is_selected():
|
||||||
self.web_click(By.XPATH, '//*[contains(@class, "BuyNowSection")]//span[contains(@class, "Toggle--Slider")]')
|
self.web_click(By.XPATH, '//*[contains(@class, "BuyNowSection")]//span[contains(@class, "Toggle--Slider")]')
|
||||||
except NoSuchElementException as ex:
|
except NoSuchElementException as ex:
|
||||||
LOG.debug(ex, exc_info = True)
|
LOG.debug(ex, exc_info = True)
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user