try: elem = rd.driver.find_element_by_partial_link_text(\'Entries feed\') if elem.is_displayed(): elem.click() print("Login is successful")