'Finds a single visible element with the specified selector.'

def find_visible_element(self, selector):

    full_selector = selector
    if self.root_selector:
        full_selector = ((self.root_selector + '    ') + full_selector)
    elements = self.q(css=full_selector)
    return next((element for element in elements if element.is_displayed()), None)
