mirror of
https://github.com/BoPeng/ai-marketplace-monitor.git
synced 2025-12-23 22:28:18 -05:00
fix removal of cookie prompt (#201)
Co-authored-by: Bo <BoPeng@users.noreply.github.com>
This commit is contained in:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user