title: how to click on the link using python selenium?
body: <p>I am trying to log in into my linkedin using python selenium. I am able to open my homepage but after that I want to open the following link present on my homepage</p>
  
  <pre><code>&lt;a href="/profile/edit?trk=nav_responsive_sub_nav_edit_profile"&gt;
  Edit Profile
  &lt;/a&gt;
  </code></pre>
  
  <p>I used the following code which allows me to open my homepage-</p>
  
  <pre><code>import getpass
  from selenium import webdriver
  from bs4 import BeautifulSoup
  from selenium.webdriver.common.keys import Keys 
  from selenium.webdriver.support.ui import WebDriverWait
  url = "https://www.linkedin.com/uas/login"
  driver = webdriver.Firefox()
  driver.get(url)
  username = 'email-id'
  password = 'password'
  user = driver.find_element_by_name("session_key")
  for j in username:
      user.send_keys(j)
  pasw = driver.find_element_by_name("session_password")
  for j in password:
      pasw.send_keys(j)
  driver.find_element_by_css_selector("div.form-buttons&gt;input").click()
  driver.find_element_by_link_text("Edit Profile").click()
  </code></pre>
  
  <p>but i get the following error message-</p>
  
  <blockquote>
    <p>selenium.common.exceptions.NoSuchElementException: Message: Unable to
    locate element: {"method":"link text","selector":"Edit Profile"}</p>
  </blockquote>