You are here

public function CoreDriver::start in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 vendor/behat/mink/src/Driver/CoreDriver.php \Behat\Mink\Driver\CoreDriver::start()

Starts driver.

Once started, the driver should be ready to visit a page.

Calling any action before visiting a page is an undefined behavior. The only supported method calls on a fresh driver are

  • visit()
  • setRequestHeader()
  • setBasicAuth()
  • reset()
  • stop()

Calling start on a started driver is an undefined behavior. Driver implementations are free to handle it silently or to fail with an exception.

Throws

DriverException When the driver cannot be started

Overrides DriverInterface::start

1 method overrides CoreDriver::start()
BrowserKitDriver::start in vendor/behat/mink-browserkit-driver/src/BrowserKitDriver.php
Starts driver.

File

vendor/behat/mink/src/Driver/CoreDriver.php, line 41

Class

CoreDriver
Core driver. All other drivers should extend this class for future compatibility.

Namespace

Behat\Mink\Driver

Code

public function start() {
  throw new UnsupportedDriverActionException('Starting the driver is not supported by %s', $this);
}