'Click on the "Review" button within the visible notification.'

def click_review_in_notification(self, notification_type):

    css_string = '.notification.notification-{notification_type}    .review-btn'.format(notification_type=notification_type)
    def tab_until_review_focused():
        '    Tab    until    the    review    button    is    focused    '
        self.browser.switch_to_active_element().send_keys(Keys.TAB)
        if self.q(css=css_string).focused:
            self.scroll_to_element(css_string)
        return self.q(css=css_string).focused
    self.wait_for(tab_until_review_focused, 'Waiting    for    the    Review    button    to    become    focused')
    self.wait_for_element_visibility(css_string, 'Waiting    for    the    button    to    be    visible')
    click_css(self, css_string, require_notification=False)
