public function reuse_session()
	{
		$sessions = $this->get('sessions');
		foreach ($sessions as $session)
		{
			$id = $session['id'];
			try
			{
				$this->get("session/$id/window_handle");
				return $id;
			}
			// @codeCoverageIgnoreStart
			// This cannot be tested because of selenium bug (can't close main window)
			catch (Exception_Selenium $exception)
			{
				$this->delete("session/$id");
			}
			// @codeCoverageIgnoreEnd
		}
	}
public function reuse_session()
	{
		$sessions = $this->get('sessions');
		foreach ($sessions as $session)
		{
			$id = $session['id'];
			try
			{
				$this->get("session/$id/window_handle");
				return $id;
			}
			// @codeCoverageIgnoreStart
			// This cannot be tested because of selenium bug (can't close main window)
			catch (Exception_Selenium $exception)
			{
				$this->delete("session/$id");
			}
			// @codeCoverageIgnoreEnd
		}
	}
public function reuse_session ( ) { $ sessions = $ this -> get ( 'sessions' ) ; foreach ( $ sessions as $ session ) { $ id = $ session [ 'id' ] ; try { $ this -> get ( "session/$id/window_handle" ) ; return $ id ; } // @codeCoverageIgnoreStart // This cannot be tested because of selenium bug (can't close main window) catch ( Exception_Selenium $ exception ) { $ this -> delete ( "session/$id" ) ; } // @codeCoverageIgnoreEnd } }
Try to reuse an existing selenium session, return the reused id
@return string
Try to reuse an existing selenium session return the reused id