title: rspec// How can I get links url / How can I prevent selenium to open new window
body: <p>I'm new to rspec capybara.</p>
  
  <p>I have two question</p>
  
  <p>1 . How can I get links url from link in the page?</p>
  
  <p>Something like;</p>
  
  <pre><code>url = find('a', :text =&gt; 'Test link')['href']
  pp url
  =&gt; "http://www.testweb.com"
  </code></pre>
  
  <p>2 . How can I prevent selenium to open new window of firefox after clicking link?</p>