Skip to content
This repository was archived by the owner on Sep 6, 2021. It is now read-only.
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@

"require": {
"php": ">=5.3.1",
"behat/mink": "~1.5.0@dev",
"behat/mink": "dev-2-architecture-changes",
"alexandresalome/php-selenium": "~1.0.1@dev",
"symfony/dom-crawler": "~2.0"
},
Expand Down
19 changes: 1 addition & 18 deletions src/Behat/Mink/Driver/SeleniumDriver.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,7 @@

namespace Behat\Mink\Driver;

use Behat\Mink\Element\NodeElement;
use Behat\Mink\Exception\UnsupportedDriverActionException;
use Behat\Mink\Session;
use Selenium\Client as SeleniumClient;
use Selenium\Exception as SeleniumException;
use Selenium\Locator as SeleniumLocator;
Expand Down Expand Up @@ -37,13 +35,6 @@ class SeleniumDriver extends CoreDriver
*/
private $timeout = 60000;

/**
* The current session
*
* @var \Behat\Mink\Session
*/
private $session;

/**
* The selenium browser instance
*
Expand Down Expand Up @@ -80,14 +71,6 @@ public function getBrowser()
return $this->browser;
}

/**
* @see Behat\Mink\Driver\DriverInterface::setSession()
*/
public function setSession(Session $session)
{
$this->session = $session;
}

/**
* @see Behat\Mink\Driver\DriverInterface::start()
*/
Expand Down Expand Up @@ -238,7 +221,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