I have been trying to figure this out for 3 hours, and can't seem to understand why this is not working. My selenium server starts up fine.
When I run behat using selenium I keep getting the following error on my terminal
Fatal error: Call to a member function open() on null (Behat\Testwork\Call\Exception\FatalThrowableError)
I am have no idea what this error message means. If someone can please help me figure this out I would really appreciate it.
Here below is my features context code where the issue is happening
use Behat\Behat\Tester\Exception\PendingException;
use Behat\Behat\Context\Context;
use Behat\Behat\Context\SnippetAcceptingContext;
use Behat\Gherkin\Node\PyStringNode;
use Behat\Gherkin\Node\TableNode;
use Behat\MinkExtension\Context\MinkContext;
use Behat\Mink\Driver\Selenium2Driver;
/**
* Defines application features from the specific context.
*/
class FeatureContext extends MinkContext implements Context, SnippetAcceptingContext
{
public $session;
public function __construct()
{
$driver = new \Behat\Mink\Driver\Selenium2Driver('firefox');
$this->session = new \Behat\Mink\Session($driver);
}
}