je essai en Behati pour obtenir une réponse d'état, mais je cette erreur:réponse getStatus avec Behati et selenium2
Ceci est mon scénario:
Feature: Google
@javascript
Scenario: Search
Given I am on the homepage
When I go to "http://stackoverflow.com"
Then I wait 3 seconds
And the response status code should be 200
code ph:
/**
* @Then the response status code should be :arg1
*/
public function theResponseStatusCodeShouldBe($arg1)
{
if ((string)$this->_response->getStatusCode() !== $arg1) {
var_dump('HTTP code does not match '.$httpStatus.' (actual: '.$this->_response->getStatusCode().')');
}
}
Comment résoudre ce bogue?