Mink with Selenium2: follow all redirects
问题 How to force Selenium2 to follow all redirects before doing some asserts? Scenario: Guest member can pay with card When I go to "/test" #test page redirects to "/auth" which then redirects to "/main" Then I should be redirected to "/main" I figured that I could simply wait: /** * @Then /^I should be redirected to "([^"]*)"$/ */ public function assertRedirect($url) { $this->getSession()->wait(10000); $this->assertPageAddress($url); } The problem is that however long I wait, I always end up on