Merge pull request #70 from jeremyFreeAgent/feature/printCurrentUrl
Added 'Then print current URL'
This commit is contained in:
@@ -411,6 +411,16 @@ class MinkContext extends RawMinkContext implements TranslatedContextInterface
|
||||
$this->assertSession()->elementsCount('css', $element, intval($num));
|
||||
}
|
||||
|
||||
/**
|
||||
* Prints current URL to console.
|
||||
*
|
||||
* @Then /^print current URL$/
|
||||
*/
|
||||
public function printCurrentUrl()
|
||||
{
|
||||
$this->printDebug($this->getSession()->getCurrentUrl());
|
||||
}
|
||||
|
||||
/**
|
||||
* Prints last response to console.
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user