Example #1
0
 /**
  * Stop Sahi browser session.
  */
 public function stop()
 {
     if (!$this->started) {
         throw new Exception\ConnectionException('Client is not started');
     }
     if ($this->browserAutoruned) {
         $this->con->stop();
     }
     $this->started = false;
 }
Example #2
0
 /**
  * Stops a session
  *
  * @return boolean
  */
 public function stop()
 {
     // do we need to rotate?
     if ($this->rotationInterval and $this->rotationTimer < time()) {
         $this->rotate();
     }
     // stop the current session
     return $this->driver->stop();
 }
 /**
  * Stops the browser on the server.
  *
  * @return Browser Fluid interface
  */
 public function stop()
 {
     $this->driver->stop();
     return $this;
 }
Example #4
0
 function testStopWorksEvenIfNotCurrentlyRunning()
 {
     $this->loop->stop();
 }