def is_bookmarked()

in foxpuppet/windows/browser/bookmarks/bookmark.py [0:0]


    def is_bookmarked(self) -> bool:
        """Checks if the current page is bookmarked using the star button.

        Returns:
            bool: True if the page is bookmarked, False otherwise.
        """
        with self.selenium.context(self.selenium.CONTEXT_CHROME):
            star_button_image = self.selenium.find_element(
                *BookmarkLocators.STAR_BUTTON_IMAGE
            )
            return star_button_image.get_attribute("starred") == "true"