/**
   * @Given /^I follow meta refresh$/
   */
  public function iFollowMetaRefresh() {
    while ($refresh = $this->getMainContext()->getSession()->getPage()->find('css', 'meta[http-equiv="Refresh"]')) {
      $content = $refresh->getAttribute('content');
      $url = str_replace('0; URL=', '', $content);
      $this->getMainContext()->getSession()->visit($url);
    }
  }

seems to work
Haven't got time for a patch atm but posting in case someone else is looking for it

Comments

jhedstrom’s picture

Do you want to post this up as a gist? I've added a new section to the README/project page pointing at some code snippets, and would happily add a link to this. For instance: https://gist.github.com/jhedstrom/5708233

larowlan’s picture

Sure

eliza411’s picture

Issue summary: View changes
Status: Active » Closed (fixed)