@@ -152,7 +152,7 @@ |
||
152 | 152 | * When using the "data-title" attribute, ensure not to include double quotes. |
153 | 153 | * |
154 | 154 | * @param String $region Region name or CSS selector |
155 | - * @return MinkElement|null |
|
155 | + * @return \Behat\Mink\Element\NodeElement |
|
156 | 156 | */ |
157 | 157 | public function getRegionObj($region) |
158 | 158 | { |
@@ -3,20 +3,14 @@ |
||
3 | 3 | namespace SilverStripe\BehatExtension\Context; |
4 | 4 | |
5 | 5 | use Behat\Behat\Context\Step; |
6 | -use Behat\Behat\Event\FeatureEvent; |
|
7 | 6 | use Behat\Behat\Event\ScenarioEvent; |
8 | -use Behat\Behat\Event\SuiteEvent; |
|
9 | -use Behat\Gherkin\Node\PyStringNode; |
|
10 | 7 | use Behat\MinkExtension\Context\MinkContext; |
11 | 8 | use Behat\Mink\Driver\GoutteDriver; |
12 | 9 | use Behat\Mink\Driver\Selenium2Driver; |
13 | 10 | use Behat\Mink\Exception\UnsupportedDriverActionException; |
14 | 11 | use Behat\Mink\Exception\ElementNotFoundException; |
15 | - |
|
16 | 12 | use SilverStripe\BehatExtension\Context\SilverStripeAwareContextInterface; |
17 | 13 | |
18 | -use Symfony\Component\Yaml\Yaml; |
|
19 | - |
|
20 | 14 | // Mink etc. |
21 | 15 | require_once 'vendor/autoload.php'; |
22 | 16 |