public function assertAtPath($path)
    {
        $this->getSession()->visit($this->locatePath($path));

        // If available, add extra validation that this is a 200 response.
        try {
            $this->getSession()->getStatusCode();
            $this->assertHttpResponse('200');
        } catch (UnsupportedDriverActionException $e) {
            // Simply continue on, as this driver doesn't support HTTP response codes.
        }
    }
public function assertAtPath($path)
    {
        $this->getSession()->visit($this->locatePath($path));

        // If available, add extra validation that this is a 200 response.
        try {
            $this->getSession()->getStatusCode();
            $this->assertHttpResponse('200');
        } catch (UnsupportedDriverActionException $e) {
            // Simply continue on, as this driver doesn't support HTTP response codes.
        }
    }
public function assertAtPath ( $ path ) { $ this -> getSession ( ) -> visit ( $ this -> locatePath ( $ path ) ) ; // If available, add extra validation that this is a 200 response. try { $ this -> getSession ( ) -> getStatusCode ( ) ; $ this -> assertHttpResponse ( '200' ) ; } catch ( UnsupportedDriverActionException $ e ) { // Simply continue on, as this driver doesn't support HTTP response codes. } }
Visit a given path, and additionally check for HTTP response code 200.

@Given I am at :path
@When I visit :path

@throws UnsupportedDriverActionException
Visit a given path and additionally check for HTTP response code 200 .