fix removal of cookie prompt (#201)

Co-authored-by: Bo <BoPeng@users.noreply.github.com>
This commit is contained in:
Brad
2025-07-05 21:20:38 +01:00
committed by GitHub
parent e4662be88a
commit dcc3a97be5

View File

@@ -289,7 +289,7 @@ class FacebookMarketplace(Marketplace):
name=re.compile(r"Allow all cookies|Allow cookies|Accept All", re.IGNORECASE),
)
if allow_button_locator.is_visible(timeout=7000): # timeout in milliseconds
if allow_button_locator.is_visible():
allow_button_locator.click()
self.page.wait_for_timeout(2000) # 2 seconds
if self.logger: