Added 'Then print current URL'
This commit is contained in:
@@ -397,6 +397,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.
|
||||
*
|
||||
|
||||
@@ -463,6 +463,16 @@ trait MinkDictionary
|
||||
$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