Removing trailing '/'s from commands to make chromedriver happy.
diff --git a/lib/src/web_driver.dart b/lib/src/web_driver.dart
index fc64ed1..ffe26e2 100644
--- a/lib/src/web_driver.dart
+++ b/lib/src/web_driver.dart
@@ -178,13 +178,20 @@
   }
 
   Future postRequest(String command, [params]) =>
-      _commandProcessor.post(_prefix.resolve(command), params);
+      _commandProcessor.post(_resolve(command), params);
 
-  Future getRequest(String command) =>
-      _commandProcessor.get(_prefix.resolve(command));
+  Future getRequest(String command) => _commandProcessor.get(_resolve(command));
 
   Future deleteRequest(String command) =>
-      _commandProcessor.delete(_prefix.resolve(command));
+      _commandProcessor.delete(_resolve(command));
+
+  Uri _resolve(String command) {
+    var uri = _prefix.resolve(command);
+    if (uri.path.endsWith('/')) {
+      uri = uri.replace(path: uri.path.substring(0, uri.path.length - 1));
+    }
+    return uri;
+  }
 
   @override
   WebDriver get driver => this;
diff --git a/test/support/forwarder_test.dart b/test/support/forwarder_test.dart
index 591634b..a6afbeb 100644
--- a/test/support/forwarder_test.dart
+++ b/test/support/forwarder_test.dart
@@ -72,12 +72,17 @@
       try {
         await forwardedDriver.quit();
       } catch (e) {
-        print('Error quitting forwardedDriver: $e');
+        print('Ignored error quitting forwardedDriver: $e');
       }
       try {
         await server.close(force: true);
       } catch (e) {
-        print('Error quitting server: $e');
+        print('Ignored error quitting server: $e');
+      }
+      try {
+        await driver.quit();
+      } catch (e) {
+        print('Ignored error quitting driver: $e');
       }
     });