public function _restart($config = [])
    {
        $this->webDriver->quit();
        if (!empty($config)) {
            $this->_reconfigure($config);
        }
        $this->_initializeSession();
    }
public function _restart($config = [])
    {
        $this->webDriver->quit();
        if (!empty($config)) {
            $this->_reconfigure($config);
        }
        $this->_initializeSession();
    }
public function _restart ( $ config = [ ] ) { $ this -> webDriver -> quit ( ) ; if ( ! empty ( $ config ) ) { $ this -> _reconfigure ( $ config ) ; } $ this -> _initializeSession ( ) ; }
Restarts a web browser.
Can be used with `_reconfigure` to open browser with different configuration

```php
<?php
// inside a Helper
$this->getModule('WebDriver')->_restart(); // just restart
$this->getModule('WebDriver')->_restart(['browser' => $browser]); // reconfigure + restart
```

@param array $config
@api
Restarts a web browser . Can be used with _reconfigure to open browser with different configuration