Skip to content

Commit

Permalink
[facebook] fix using new selenium element finder
Browse files Browse the repository at this point in the history
  • Loading branch information
naisanzaa committed Jan 18, 2025
1 parent 0d0fc6b commit 5d829d9
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions automon/integrations/facebook/groups.py
Original file line number Diff line number Diff line change
Expand Up @@ -234,7 +234,8 @@ def creation_date(self):
]

for re_match in re_matches:
element = self._browser.find_anything_with_beautifulsoup(

element = self._browser.find_elements_with_beautifulsoup(
match=re_match,
name='span',
case_sensitive=True,
Expand Down Expand Up @@ -397,7 +398,8 @@ def history(self):
]

for re_match in re_matches:
elements = self._browser.find_anything_with_beautifulsoup(

elements = self._browser.find_elements_with_beautifulsoup(
match=re_match,
name='span',
case_sensitive=True,
Expand Down Expand Up @@ -627,6 +629,7 @@ def posts_monthly(self):
string='in the last month',
case_sensitive=True
)

if element:
element = element[0].text

Expand Down

0 comments on commit 5d829d9

Please sign in to comment.