title: How do I get the onclick "action" of a link using Python and Selenium?
body: <p>I am scraping a job board (eluta.ca) using Python and Selenium.</p>
  
  <p>I'm able to return everything I want except for the link to the extended job description.  In the bit of HTML below the job "Claims Adjuster"; links to "<a href="http://www.eluta.ca./direct/p?i=f1a7daa360e9468d5837d821c9d328ec" rel="nofollow">http://www.eluta.ca./direct/p?i=f1a7daa360e9468d5837d821c9d328ec</a>"</p>
  
  <pre><code>&lt;h2 class="title"&gt;
  
      &lt;span class="lk-job-title" title="Claims Adjuster" onclick="enav2('./direct/p?i=f1a7daa360e9468d5837d821c9d328ec')"&gt;&lt;/span&gt;
  
  &lt;/h2&gt;
  </code></pre>
  
  <p>I can find the element using the code</p>
  
  <pre><code>webdriver.find_element_by_css_selector("#organic-jobs .organic-job:nth-child("+str(Line)+") .title .lk-job-title")
  </code></pre>
  
  <p>retrieve the job via .text, navigate to the extended description via .click()</p>
  
  <p>Am I missing sometingh obvious that would return all or part of <code>"enav2('./direct/p?i=f1a7daa360e9468d5837d821c9d328ec')"</code></p>
  
  <p>Thanks in advance</p>