/**
* @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
Comment #1
jhedstromDo 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
Comment #2
larowlanSure
Comment #3
eliza411 commentedDone: https://gist.github.com/eliza411/67d2aa93cfa9a31b65ad