Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[WIP] Updated the driver for the Mink 2.0 API #58

Closed
wants to merge 1 commit into from
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 @@ -21,7 +21,7 @@

"require": {
"php": ">=5.3.1",
"behat/mink": "~1.5@dev",
"behat/mink": "dev-2-architecture-changes",
"symfony/process": "~2.1"
},

Expand Down
16 changes: 1 addition & 15 deletions src/Behat/Mink/Driver/ZombieDriver.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,7 @@
namespace Behat\Mink\Driver;

use Behat\Mink\Driver\NodeJS\Server\ZombieServer;
use Behat\Mink\Element\NodeElement;
use Behat\Mink\Exception\DriverException;
use Behat\Mink\Session;

/**
* Zombie (JS) driver.
Expand All @@ -22,10 +20,6 @@
*/
class ZombieDriver extends CoreDriver
{
/**
* @var Session
*/
private $session;
private $started = false;
private $nativeRefs = array();
private $server = null;
Expand Down Expand Up @@ -61,14 +55,6 @@ public function getServer()
return $this->server;
}

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

/**
* {@inheritdoc}
*/
Expand Down Expand Up @@ -344,7 +330,7 @@ public function find($xpath)
foreach ($refs as $i => $ref) {
$subXpath = sprintf('(%s)[%d]', $xpath, $i + 1);
$this->nativeRefs[md5($subXpath)] = $ref;
$elements[] = new NodeElement($subXpath, $this->session);
$elements[] = $subXpath;

// first node ref also matches the original xpath
if (0 === $i) {
Expand Down