diff --git a/composer.json b/composer.json index c0c5df9..a73d17f 100644 --- a/composer.json +++ b/composer.json @@ -16,7 +16,7 @@ "require": { "php": ">=5.3.1", - "behat/mink": "~1.6@dev", + "behat/mink": "dev-2-architecture-changes", "symfony/browser-kit": "~2.0", "symfony/dom-crawler": "~2.0" }, diff --git a/src/Behat/Mink/Driver/BrowserKitDriver.php b/src/Behat/Mink/Driver/BrowserKitDriver.php index f27ea6b..3ace1fb 100644 --- a/src/Behat/Mink/Driver/BrowserKitDriver.php +++ b/src/Behat/Mink/Driver/BrowserKitDriver.php @@ -10,10 +10,8 @@ namespace Behat\Mink\Driver; -use Behat\Mink\Element\NodeElement; use Behat\Mink\Exception\DriverException; use Behat\Mink\Exception\UnsupportedDriverActionException; -use Behat\Mink\Session; use Symfony\Component\BrowserKit\Client; use Symfony\Component\BrowserKit\Cookie; use Symfony\Component\BrowserKit\Request; @@ -36,7 +34,6 @@ */ class BrowserKitDriver extends CoreDriver { - private $session; private $client; /** @@ -74,14 +71,6 @@ public function getClient() return $this->client; } - /** - * {@inheritdoc} - */ - public function setSession(Session $session) - { - $this->session = $session; - } - /** * Tells driver to remove hostname from URL. * @@ -351,7 +340,7 @@ public function find($xpath) $elements = array(); foreach ($nodes as $i => $node) { - $elements[] = new NodeElement(sprintf('(%s)[%d]', $xpath, $i + 1), $this->session); + $elements[] = sprintf('(%s)[%d]', $xpath, $i + 1); } return $elements;