title: Clicking on link within Google search results using Selenium webdriver
body: <p>I am trying to use selenium web driver to open up Google search for Youtube and then click on the Youtube link.  (I know I could go straight there but this is a proof of concept)  I have played around with different solutions, but I keep having problems locating the Youtube link for me to click on.</p>
  <p>Here is what I have:</p>
  <pre><code>driver = webdriver.Chrome()
  driver.get(&quot;https://google.com&quot;)
  elem = driver.find_element_by_name(&quot;q&quot;)
  elem.clear()
  elem.send_keys(&quot;youtube&quot;)
  elem.send_keys(Keys.RETURN)
  assert &quot;No results found.&quot; not in driver.page_source
  link = driver.find_element_by_link_text('YouTube')
  link.click()
  </code></pre>
  <p>I can't get the HTML to recognize so just inspect it on google to see the HTML for Youtube.</p>
  <p>Also answers in python would be appreciated.</p>