mirror of
https://github.com/Second-Hand-Friends/kleinanzeigen-bot.git
synced 2026-03-12 02:31:45 +01:00
FIX do not click on pstad-price to wait for category detection (#148)
This commit is contained in:
@@ -584,8 +584,9 @@ class KleinanzeigenBot(SeleniumMixin):
|
||||
utils.save_dict(ad_file, ad_cfg_orig)
|
||||
|
||||
def __set_category(self, ad_file:str, ad_cfg: dict[str, Any]):
|
||||
# trigger and wait for automatic category detection
|
||||
self.web_click(By.ID, "pstad-price")
|
||||
# click on something to trigger automatic category detection
|
||||
self.web_click(By.ID, "pstad-descrptn")
|
||||
|
||||
try:
|
||||
self.web_find(By.XPATH, "//*[@id='postad-category-path'][text()]")
|
||||
is_category_auto_selected = True
|
||||
|
||||
Reference in New Issue
Block a user