mirror of
https://github.com/Second-Hand-Friends/kleinanzeigen-bot.git
synced 2026-03-12 10:31:50 +01:00
Refactored XPATH expression for deselecting unwanted shipping options.
This commit is contained in:
@@ -1013,10 +1013,7 @@ class KleinanzeigenBot(WebScrapingMixin):
|
||||
try:
|
||||
await self.web_click(
|
||||
By.XPATH,
|
||||
'//*[contains(@class, "CarrierSelectionModal")]'
|
||||
'//*[contains(@class, "CarrierOption")]'
|
||||
f'//*[contains(@class, "CarrierOption--Main") and @data-testid="{shipping_package}"]'
|
||||
)
|
||||
f'//dialog//input[contains(@data-testid, "{shipping_package}")]')
|
||||
except TimeoutError as ex:
|
||||
LOG.debug(ex, exc_info = True)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user