4 namespace Zumba\Mink\Driver;
8 * @package Zumba\Mink\Driver
16 * Starts a session to be used by the driver client
18 public function start() {
19 $this->started = true;
23 * Tells if the session is started or not
26 public function isStarted() {
27 return $this->started;
31 * Stops the session completely, clean slate for the browser
34 public function stop() {
35 //Since we are using a remote browser "API", stopping is just like resetting, say good bye to cookies
36 //TODO: In the future we may want to control a start / stop of the remove browser
37 return $this->reset();
41 * Clears the cookies in the browser, all of them
44 public function reset() {
45 $this->getBrowser()->clearCookies();
46 $this->getBrowser()->reset();
47 $this->started = false;