function Session::__construct
Same name in this branch
- 11.1.x vendor/lullabot/php-webdriver/lib/WebDriver/Session.php \WebDriver\Session::__construct()
- 11.1.x vendor/symfony/http-foundation/Session/Session.php \Symfony\Component\HttpFoundation\Session\Session::__construct()
- 11.1.x core/lib/Drupal/Core/StackMiddleware/Session.php \Drupal\Core\StackMiddleware\Session::__construct()
File
-
vendor/
behat/ mink/ src/ Session.php, line 42
Class
- Session
- Mink session.
Namespace
Behat\MinkCode
public function __construct(DriverInterface $driver, ?SelectorsHandler $selectorsHandler = null) {
$this->driver = $driver;
$this->selectorsHandler = $selectorsHandler ?? new SelectorsHandler();
$this->elementFinder = new ElementFinder($driver, $this->selectorsHandler);
$this->page = new DocumentElement($this);
$driver->setSession($this);
}