Exemplo n.º 1
0
 public Response execute(Command command) throws IOException {
   if (connection == null) {
     if (command.getName().equals(DriverCommand.QUIT)) {
       return new Response();
     }
     throw new SessionNotFoundException(
         "The FirefoxDriver cannot be used after quit() was called.");
   }
   return connection.execute(command);
 }