title: Codeception Webdriver: Grabbing the href value of a link
body: <p>I'm trying to use Codeception (acceptance testing with webdriver/selenium) to test my application and would like to be able to grab the value of a link after I've performed an action.</p>
  
  <p>Basically I want to log out of the system and then click the link so I need to store the url in a variable for use after the log out action.</p>
  
  <p>It's kind of a CMS operation like this:</p>
  
  <ol>
  <li>Log in as admin</li>
  <li>Create content</li>
  <li>Content created and link displayed to user</li>
  </ol>
  
  <p>I want to be able to then</p>
  
  <ol>
  <li>Grab the href value of the link</li>
  <li>Log out</li>
  <li>Go to the URL and check for certain page content.</li>
  </ol>