Skip to content

Commit

Permalink
Bookmark Selector Fix (#353)
Browse files Browse the repository at this point in the history
  • Loading branch information
Temidayo32 authored Feb 20, 2025
1 parent a07fe1d commit f411eb8
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions foxpuppet/windows/browser/bookmarks/bookmark.py
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ def add_bookmark(
"""
with self.selenium.context(self.selenium.CONTEXT_CHROME):
if not is_detailed:
self.selenium.find_element(*BookmarkLocators.STAR_BUTTON).click()
self.selenium.find_element(*BookmarkLocators.STAR_BUTTON_IMAGE).click()
self.selenium.find_element(*BookmarkLocators.FOLDER_MENU).click()
self.selenium.find_element(*BookmarkLocators.OTHER_BOOKMARKS_STAR).click()
self.selenium.find_element(*BookmarkLocators.SAVE_BUTTON).click()
Expand Down Expand Up @@ -169,7 +169,9 @@ def delete_bookmark(
star_button_image
and star_button_image.get_attribute("starred") == "true"
):
self.selenium.find_element(*BookmarkLocators.STAR_BUTTON).click()
self.selenium.find_element(
*BookmarkLocators.STAR_BUTTON_IMAGE
).click()
self.selenium.find_element(*BookmarkLocators.REMOVE_BUTTON).click()
return
self.actions.context_click(
Expand Down

0 comments on commit f411eb8

Please sign in to comment.