Skip to content

Commit

Permalink
facebook: add close_login_popup
Browse files Browse the repository at this point in the history
  • Loading branch information
naisanzaa committed Oct 7, 2024
1 parent 3a56c30 commit 210e9ec
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions automon/integrations/facebook/groups.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,17 @@ def __init__(self, url: str = None):

self._browser = SeleniumBrowser()

def close_login_popup(self):
try:
button = self._browser.find_anything(
match='Close',
value='[aria-label="Close"]',
by=self._browser.by.CSS_SELECTOR,
)
button[0].click()
except Exception as error:
logger.error(error)

def content_unavailable(self):
"""This content isn't available right now"""

Expand Down

0 comments on commit 210e9ec

Please sign in to comment.