mirror of
https://github.com/Second-Hand-Friends/kleinanzeigen-bot.git
synced 2026-03-12 10:31:50 +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)
|
utils.save_dict(ad_file, ad_cfg_orig)
|
||||||
|
|
||||||
def __set_category(self, ad_file:str, ad_cfg: dict[str, Any]):
|
def __set_category(self, ad_file:str, ad_cfg: dict[str, Any]):
|
||||||
# trigger and wait for automatic category detection
|
# click on something to trigger automatic category detection
|
||||||
self.web_click(By.ID, "pstad-price")
|
self.web_click(By.ID, "pstad-descrptn")
|
||||||
|
|
||||||
try:
|
try:
|
||||||
self.web_find(By.XPATH, "//*[@id='postad-category-path'][text()]")
|
self.web_find(By.XPATH, "//*[@id='postad-category-path'][text()]")
|
||||||
is_category_auto_selected = True
|
is_category_auto_selected = True
|
||||||
|
|||||||
Reference in New Issue
Block a user