welcome_button = browser.find_element_by_class_name('welcomeLoginButton')
wait_for_element_visibility(welcome_button).click()

def wait_for_element_visibility(element):
    if element.is_visible():
        return element
Error trying to login to webpage using selenium with python