title: selenium how to get the content of href within some targeted class
body: <p>I am trying to retrieve the data from the webpage has the html in below</p>
  
  <pre><code>       &lt;div class="someclass"&gt;
         &lt;p class="name"&gt;&lt;a href="#/word/1/"&gt;helloworld&lt;/a&gt;&lt;/p&gt;
         &lt;/div&gt;
  </code></pre>
  
  <p>My goal is to parse "#/word/1/"
  What I did is </p>
  
  <pre><code>        target = self.driver.find_element_by_class_name('someclass')
          print target
          print target.text
          print target.get_attribute("css=a@href")
          print target.tag_name
  </code></pre>
  
  <p>but the output are </p>
  
  <pre><code> &lt;selenium.webdriver.remote.webelement.WebElement object at 0x10bf16210&gt;
   helloworld
   None
   div 
  </code></pre>
  
  <p>I tried so many ways , it seems there is no way i can get the content of 'a href' within the targeted class.</p>
  
  <p>I really dont want to do is get the source code of the page, and then do a string searching, that seems dumb....</p>
  
  <p>anyway to get that?</p>