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:
|
try:
|
||||||
await self.web_click(
|
await self.web_click(
|
||||||
By.XPATH,
|
By.XPATH,
|
||||||
'//*[contains(@class, "CarrierSelectionModal")]'
|
f'//dialog//input[contains(@data-testid, "{shipping_package}")]')
|
||||||
'//*[contains(@class, "CarrierOption")]'
|
|
||||||
f'//*[contains(@class, "CarrierOption--Main") and @data-testid="{shipping_package}"]'
|
|
||||||
)
|
|
||||||
except TimeoutError as ex:
|
except TimeoutError as ex:
|
||||||
LOG.debug(ex, exc_info = True)
|
LOG.debug(ex, exc_info = True)
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user