def find_primary_button(self):
        """Retrieve the primary button."""
        if self.window.firefox_version >= 67:
            return self.root.find_element(
                By.CLASS_NAME, "popup-notification-primary-button")
        return self.root.find_anonymous_element_by_attribute(
            "anonid", "button")
def find_primary_button ( self ) : if self . window . firefox_version >= 67 : return self . root . find_element ( By . CLASS_NAME , "popup-notification-primary-button" ) return self . root . find_anonymous_element_by_attribute ( "anonid" , "button" )
Retrieve the primary button.