Skip to content

Commit

Permalink
Updated the driver for the Mink 2.0 API
Browse files Browse the repository at this point in the history
  • Loading branch information
stof committed Jan 23, 2015
1 parent d503e05 commit dd19895
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 18 deletions.
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@

"require": {
"php": ">=5.3.1",
"behat/mink": "~1.6@dev",
"behat/mink": "dev-2-architecture-changes",
"instaclick/php-webdriver": "~1.1"
},

Expand Down
18 changes: 1 addition & 17 deletions src/Behat/Mink/Driver/Selenium2Driver.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,8 @@

namespace Behat\Mink\Driver;

use Behat\Mink\Element\NodeElement;
use Behat\Mink\Exception\DriverException;
use Behat\Mink\Selector\Xpath\Escaper;
use Behat\Mink\Session;
use WebDriver\Element;
use WebDriver\Exception\NoSuchElement;
use WebDriver\Exception\UnknownError;
Expand All @@ -28,12 +26,6 @@
*/
class Selenium2Driver extends CoreDriver
{
/**
* The current Mink session
* @var Session
*/
private $session;

/**
* Whether the browser has been started
* @var Boolean
Expand Down Expand Up @@ -286,14 +278,6 @@ private function executeJsOnElement(Element $element, $script, $sync = true)
return $this->wdSession->execute_async($options);
}

/**
* {@inheritdoc}
*/
public function setSession(Session $session)
{
$this->session = $session;
}

/**
* {@inheritdoc}
*/
Expand Down Expand Up @@ -505,7 +489,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;
Expand Down

0 comments on commit dd19895

Please sign in to comment.