public function BrowserKitDriver::getCurrentUrl in Zircon Profile 8
Same name and namespace in other branches
- 8.0 vendor/behat/mink-browserkit-driver/src/BrowserKitDriver.php \Behat\Mink\Driver\BrowserKitDriver::getCurrentUrl()
Returns current URL address.
Return value
string
Throws
UnsupportedDriverActionException When operation not supported by the driver
DriverException When the operation cannot be done
Overrides CoreDriver::getCurrentUrl
3 calls to BrowserKitDriver::getCurrentUrl()
- BrowserKitDriver::getCookie in vendor/
behat/ mink-browserkit-driver/ src/ BrowserKitDriver.php - Returns cookie by name.
- BrowserKitDriver::getCookiePath in vendor/
behat/ mink-browserkit-driver/ src/ BrowserKitDriver.php - Returns current cookie path.
- BrowserKitDriver::getFormField in vendor/
behat/ mink-browserkit-driver/ src/ BrowserKitDriver.php - Returns form field from XPath query.
File
- vendor/
behat/ mink-browserkit-driver/ src/ BrowserKitDriver.php, line 151
Class
- BrowserKitDriver
- Symfony2 BrowserKit driver.
Namespace
Behat\Mink\DriverCode
public function getCurrentUrl() {
$request = $this->client
->getInternalRequest();
if ($request === null) {
throw new DriverException('Unable to access the request before visiting a page');
}
return $request
->getUri();
}