'Logout'

def logout(self):

    config = current.test_config
    browser = config.browser
    url = ('%s/default/user/login' % config.url)
    browser.get(url)
    browser.find_element_by_id('auth_menu_email').click()
    try:
        elem = browser.find_element_by_id('auth_menu_logout')
    except NoSuchElementException:
        self.reporter('Logged-out    already')
        return True
    elem.click()
    try:
        elem = self.get_confirmation(3)
    except NoSuchElementException:
        assert 0, 'Logout    unsuccesful'
    else:
        self.reporter(elem.text)
        return True
