瀏覽代碼

Add Test:: versions of binary packages (#269)

* minor - typo prevents useful debug info

* Add convenience test packages, unit tests, and recordings

* Add POD

* Minor: missing dependency

* spelling

* minor - whitespace fix in POD

* Try adding linux recordings from docker container

Closes #267
Daniel Gempesaw 9 年之前
父節點
當前提交
1687064eb3

+ 1 - 0
cpanfile

@@ -53,6 +53,7 @@ on 'configure' => sub {
 
 on 'develop' => sub {
   requires "Pod::Coverage::TrustPod" => "0";
+  requires "Test::More" => "0";
   requires "Test::Pod" => "1.41";
   requires "Test::Pod::Coverage" => "1.08";
 };

+ 1 - 1
lib/Selenium/CanStartBinary/FindBinary.pm

@@ -64,7 +64,7 @@ sub _naive_find_binary {
         return $naive_binary;
     }
     else {
-        warn qq(Unable to find the $naive_binary binary in your \$PATH. We'll try falling back to standard Remote Driver);
+        warn qq(Unable to find the $executable binary in your \$PATH. We'll try falling back to standard Remote Driver);
         return;
     }
 }

+ 23 - 0
lib/Test/Selenium/Chrome.pm

@@ -0,0 +1,23 @@
+package Test::Selenium::Chrome;
+
+use Moo;
+extends 'Selenium::Chrome', 'Test::Selenium::Remote::Driver';
+
+1;
+
+__END__
+
+=head1 NAME
+
+Test::Selenium::Chrome
+
+=head1 SYNOPSIS
+
+    my $test_driver = Test::Selenium::Chrome->new;
+    $test_driver->get_ok('https://duckduckgo.com', "Chrome can load page");
+    $test_driver->quit();
+
+=head1 DESCRIPTION
+
+A subclass of L<Selenium::Chrome> which provides useful testing functions.  Please see L<Selenium::Chrome> and L<Test::Selenium::Remote::Driver> for usage information.
+

+ 23 - 0
lib/Test/Selenium/Firefox.pm

@@ -0,0 +1,23 @@
+package Test::Selenium::Firefox;
+
+use Moo;
+extends 'Selenium::Firefox', 'Test::Selenium::Remote::Driver';
+
+1;
+
+__END__
+
+=head1 NAME
+
+Test::Selenium::Firefox
+
+=head1 SYNOPSIS
+
+    my $test_driver = Test::Selenium::Firefox->new;
+    $test_driver->get_ok('https://duckduckgo.com', "Firefox can load page");
+    $test_driver->quit();
+
+=head1 DESCRIPTION
+
+A subclass of L<Selenium::Firefox> which provides useful testing functions.  Please see L<Selenium::Firefox> and L<Test::Selenium::Remote::Driver> for usage information.
+

+ 24 - 0
lib/Test/Selenium/InternetExplorer.pm

@@ -0,0 +1,24 @@
+package Test::Selenium::InternetExplorer;
+
+use Moo;
+extends 'Selenium::InternetExplorer', 'Test::Selenium::Remote::Driver';
+
+1;
+
+__END__
+
+=head1 NAME
+
+Test::Selenium::InternetExplorer
+
+=head1 SYNOPSIS
+
+    my $test_driver = Test::Selenium::InternetExplorer->new;
+    $test_driver->get_ok('https://duckduckgo.com', "InternetExplorer can load page");
+    $test_driver->quit();
+
+=head1 DESCRIPTION
+
+A subclass of L<Selenium::InternetExplorer> which provides useful testing functions.  Please see L<Selenium::InternetExplorer> and L<Test::Selenium::Remote::Driver> for usage information.
+
+

+ 24 - 0
lib/Test/Selenium/PhantomJS.pm

@@ -0,0 +1,24 @@
+package Test::Selenium::PhantomJS;
+
+use Moo;
+extends 'Selenium::PhantomJS', 'Test::Selenium::Remote::Driver';
+
+1;
+
+__END__
+
+=head1 NAME
+
+Test::Selenium::PhantomJS
+
+=head1 SYNOPSIS
+
+    my $test_driver = Test::Selenium::PhantomJS->new;
+    $test_driver->get_ok('https://duckduckgo.com', "PhantomJS can load page");
+    $test_driver->quit();
+
+=head1 DESCRIPTION
+
+A subclass of L<Selenium::PhantomJS> which provides useful testing functions.  Please see L<Selenium::PhantomJS> and L<Test::Selenium::Remote::Driver> for usage information.
+
+

+ 48 - 12
t/convenience.t

@@ -4,6 +4,10 @@ use Selenium::Chrome;
 use Selenium::Firefox;
 use Selenium::InternetExplorer;
 use Selenium::PhantomJS;
+use Test::Selenium::Chrome;
+use Test::Selenium::Firefox;
+use Test::Selenium::InternetExplorer;
+use Test::Selenium::PhantomJS;
 use Test::More;
 
 use FindBin;
@@ -18,20 +22,52 @@ my %caps = %{ $harness->base_caps };
 $caps{remote_server_addr} = '127.0.0.1';
 delete $caps{browser_name};
 
-my $firefox = Selenium::Firefox->new( %caps );
-ok( $firefox->browser_name eq 'firefox', 'convenience firefox is okay' );
-$firefox->quit;
+subtest Driver => sub {
+	my $phantomjs = Selenium::PhantomJS->new( %caps );
+	ok( $phantomjs->browser_name eq 'phantomjs', 'convenience phantomjs is okay' );
+	$phantomjs->quit;
 
-my $chrome = Selenium::Chrome->new( %caps );
-ok( $chrome->browser_name eq 'chrome', 'convenience chrome is okay' );
-$chrome->quit;
+	my $firefox = Selenium::Firefox->new( %caps );
+	ok( $firefox->browser_name eq 'firefox', 'convenience firefox is okay' );
+	$firefox->quit;
 
-SKIP: {
-    skip 'Can only test IE on windows', 1 unless $^O eq 'MSWin32';
+	my $chrome = Selenium::Chrome->new( %caps );
+	ok( $chrome->browser_name eq 'chrome', 'convenience chrome is okay' );
+	$chrome->quit;
+
+	SKIP: {
+		skip 'Can only test IE on windows', 1 unless $^O eq 'MSWin32';
+
+		my $ie = Selenium::InternetExplorer->new( %caps );
+		ok( $ie->browser_name eq 'internet_explorer', 'convenience ie is okay' );
+		$ie->quit;
+	}
+};
+
+subtest TestDriver => sub {
+	my $phantomjs = Test::Selenium::PhantomJS->new( %caps );
+	ok( $phantomjs->browser_name eq 'phantomjs', 'convenience phantomjs is okay' );
+	$phantomjs->get_ok('about:config');
+	$phantomjs->quit;
+
+	my $firefox = Test::Selenium::Firefox->new( %caps );
+	$firefox->get_ok('about:config');
+	ok( $firefox->browser_name eq 'firefox', 'convenience firefox is okay' );
+	$firefox->quit;
+
+	my $chrome = Test::Selenium::Chrome->new( %caps );
+	ok( $chrome->browser_name eq 'chrome', 'convenience chrome is okay' );
+	$chrome->get_ok('about:config');
+	$chrome->quit;
+
+	SKIP: {
+		skip 'Can only test IE on windows', 1 unless $^O eq 'MSWin32';
+
+		my $ie = Test::Selenium::InternetExplorer->new( %caps );
+		ok( $ie->browser_name eq 'internet_explorer', 'convenience ie is okay' );
+		$ie->quit;
+	}
+};
 
-    my $ie = Selenium::InternetExplorer->new( %caps );
-    ok( $ie->browser_name eq 'internet_explorer', 'convenience ie is okay' );
-    $ie->quit;
-}
 
 done_testing;

+ 35 - 8
t/mock-recordings/convenience-mock-darwin.json

@@ -1,14 +1,41 @@
 {
-   "DELETE session/ffa689f5-d71b-42fc-9d54-46ba96f46c07 {}" : [
-      "HTTP/1.1 200 OK\nCache-Control: no-cache\nCache-Control: no-cache\nConnection: close\nDate: Mon, 26 Jan 2015 00:39:22 GMT\nServer: Jetty/5.1.x (Mac OS X/10.10.1 x86_64 java/1.7.0_67\nContent-Length: 158\nContent-Type: application/json; charset=utf-8\nExpires: Thu, 01 Jan 1970 00:00:00 GMT\nExpires: Thu, 01 Jan 1970 00:00:00 GMT\nClient-Date: Mon, 26 Jan 2015 00:39:22 GMT\nClient-Peer: 127.0.0.1:4444\nClient-Response-Num: 1\n\n{\"sessionId\":\"ffa689f5-d71b-42fc-9d54-46ba96f46c07\",\"status\":0,\"state\":\"success\",\"value\":null,\"class\":\"org.openqa.selenium.remote.Response\",\"hCode\":307272646}\n"
-   ],
-   "POST session {\"desiredCapabilities\":{\"acceptSslCerts\":true,\"browserName\":\"chrome\",\"javascriptEnabled\":true,\"platform\":\"ANY\",\"version\":\"\"}}" : [
-      "HTTP/1.1 200 OK\nCache-Control: no-cache\nCache-Control: no-cache\nConnection: close\nDate: Mon, 26 Jan 2015 00:39:22 GMT\nServer: Jetty/5.1.x (Mac OS X/10.10.1 x86_64 java/1.7.0_67\nContent-Length: 744\nContent-Type: application/json; charset=utf-8\nExpires: Thu, 01 Jan 1970 00:00:00 GMT\nExpires: Thu, 01 Jan 1970 00:00:00 GMT\nClient-Date: Mon, 26 Jan 2015 00:39:23 GMT\nClient-Peer: 127.0.0.1:4444\nClient-Response-Num: 1\n\n{\"sessionId\":\"0bb63c2d-038d-4b2a-84dd-ed913c0f9e7c\",\"status\":0,\"state\":null,\"value\":{\"platform\":\"MAC\",\"acceptSslCerts\":true,\"javascriptEnabled\":true,\"browserName\":\"chrome\",\"chrome\":{\"userDataDir\":\"/var/folders/19/fy4zlkw13c160qyl6h5px_dh55vrly/T/.org.chromium.Chromium.7X4hmM\"},\"rotatable\":false,\"locationContextEnabled\":true,\"mobileEmulationEnabled\":false,\"webdriver.remote.sessionid\":\"0bb63c2d-038d-4b2a-84dd-ed913c0f9e7c\",\"version\":\"40.0.2214.91\",\"takesHeapSnapshot\":true,\"cssSelectorsEnabled\":true,\"databaseEnabled\":false,\"handlesAlerts\":true,\"browserConnectionEnabled\":false,\"nativeEvents\":true,\"webStorageEnabled\":true,\"applicationCacheEnabled\":false,\"takesScreenshot\":true},\"class\":\"org.openqa.selenium.remote.Response\",\"hCode\":85267270}\n"
+   "DELETE session/130874ad-07d4-49b7-9564-1b671393e098 {}" : [
+      "HTTP/1.1 200 OK\nCache-Control: no-cache\nCache-Control: no-cache\nConnection: close\nDate: Tue, 10 May 2016 19:36:47 GMT\nServer: Jetty/5.1.x (Mac OS X/10.11.4 x86_64 java/1.8.0_92\nContent-Length: 159\nContent-Type: application/json; charset=utf-8\nExpires: Thu, 01 Jan 1970 00:00:00 GMT\nExpires: Thu, 01 Jan 1970 00:00:00 GMT\nClient-Date: Tue, 10 May 2016 19:36:47 GMT\nClient-Peer: ::1:4444\nClient-Response-Num: 1\n\n{\"state\":\"success\",\"sessionId\":\"130874ad-07d4-49b7-9564-1b671393e098\",\"hCode\":1833281253,\"value\":null,\"class\":\"org.openqa.selenium.remote.Response\",\"status\":0}\n"
    ],
    "POST session {\"desiredCapabilities\":{\"acceptSslCerts\":true,\"browserName\":\"firefox\",\"javascriptEnabled\":true,\"platform\":\"ANY\",\"version\":\"\"}}" : [
-      "HTTP/1.1 200 OK\nCache-Control: no-cache\nCache-Control: no-cache\nConnection: close\nDate: Mon, 26 Jan 2015 00:39:19 GMT\nServer: Jetty/5.1.x (Mac OS X/10.10.1 x86_64 java/1.7.0_67\nContent-Length: 545\nContent-Type: application/json; charset=utf-8\nExpires: Thu, 01 Jan 1970 00:00:00 GMT\nExpires: Thu, 01 Jan 1970 00:00:00 GMT\nClient-Date: Mon, 26 Jan 2015 00:39:22 GMT\nClient-Peer: 127.0.0.1:4444\nClient-Response-Num: 1\n\n{\"sessionId\":\"ffa689f5-d71b-42fc-9d54-46ba96f46c07\",\"status\":0,\"state\":null,\"value\":{\"platform\":\"MAC\",\"javascriptEnabled\":true,\"acceptSslCerts\":true,\"browserName\":\"firefox\",\"rotatable\":false,\"locationContextEnabled\":true,\"webdriver.remote.sessionid\":\"ffa689f5-d71b-42fc-9d54-46ba96f46c07\",\"version\":\"34.0.5\",\"databaseEnabled\":true,\"cssSelectorsEnabled\":true,\"handlesAlerts\":true,\"webStorageEnabled\":true,\"nativeEvents\":false,\"applicationCacheEnabled\":true,\"takesScreenshot\":true},\"class\":\"org.openqa.selenium.remote.Response\",\"hCode\":1080275328}\n"
+      "HTTP/1.1 200 OK\nCache-Control: no-cache\nCache-Control: no-cache\nConnection: close\nDate: Tue, 10 May 2016 19:36:42 GMT\nServer: Jetty/5.1.x (Mac OS X/10.11.4 x86_64 java/1.8.0_92\nContent-Length: 544\nContent-Type: application/json; charset=utf-8\nExpires: Thu, 01 Jan 1970 00:00:00 GMT\nExpires: Thu, 01 Jan 1970 00:00:00 GMT\nClient-Date: Tue, 10 May 2016 19:36:45 GMT\nClient-Peer: ::1:4444\nClient-Response-Num: 1\n\n{\"state\":null,\"sessionId\":\"1bbd24b7-a9f5-42a4-ac72-495204d7aab5\",\"hCode\":428780373,\"value\":{\"applicationCacheEnabled\":true,\"rotatable\":false,\"handlesAlerts\":true,\"databaseEnabled\":true,\"version\":\"46.0.1\",\"platform\":\"MAC\",\"nativeEvents\":false,\"acceptSslCerts\":true,\"webdriver.remote.sessionid\":\"1bbd24b7-a9f5-42a4-ac72-495204d7aab5\",\"webStorageEnabled\":true,\"locationContextEnabled\":true,\"browserName\":\"firefox\",\"takesScreenshot\":true,\"javascriptEnabled\":true,\"cssSelectorsEnabled\":true},\"class\":\"org.openqa.selenium.remote.Response\",\"status\":0}\n",
+      "HTTP/1.1 200 OK\nCache-Control: no-cache\nCache-Control: no-cache\nConnection: close\nDate: Tue, 10 May 2016 19:36:47 GMT\nServer: Jetty/5.1.x (Mac OS X/10.11.4 x86_64 java/1.8.0_92\nContent-Length: 545\nContent-Type: application/json; charset=utf-8\nExpires: Thu, 01 Jan 1970 00:00:00 GMT\nExpires: Thu, 01 Jan 1970 00:00:00 GMT\nClient-Date: Tue, 10 May 2016 19:36:49 GMT\nClient-Peer: ::1:4444\nClient-Response-Num: 1\n\n{\"state\":null,\"sessionId\":\"ea928927-bb56-460d-afde-7b5bf4b2851a\",\"hCode\":2051405839,\"value\":{\"applicationCacheEnabled\":true,\"rotatable\":false,\"handlesAlerts\":true,\"databaseEnabled\":true,\"version\":\"46.0.1\",\"platform\":\"MAC\",\"nativeEvents\":false,\"acceptSslCerts\":true,\"webdriver.remote.sessionid\":\"ea928927-bb56-460d-afde-7b5bf4b2851a\",\"webStorageEnabled\":true,\"locationContextEnabled\":true,\"browserName\":\"firefox\",\"takesScreenshot\":true,\"javascriptEnabled\":true,\"cssSelectorsEnabled\":true},\"class\":\"org.openqa.selenium.remote.Response\",\"status\":0}\n"
+   ],
+   "DELETE session/ea928927-bb56-460d-afde-7b5bf4b2851a {}" : [
+      "HTTP/1.1 200 OK\nCache-Control: no-cache\nCache-Control: no-cache\nConnection: close\nDate: Tue, 10 May 2016 19:36:49 GMT\nServer: Jetty/5.1.x (Mac OS X/10.11.4 x86_64 java/1.8.0_92\nContent-Length: 158\nContent-Type: application/json; charset=utf-8\nExpires: Thu, 01 Jan 1970 00:00:00 GMT\nExpires: Thu, 01 Jan 1970 00:00:00 GMT\nClient-Date: Tue, 10 May 2016 19:36:49 GMT\nClient-Peer: ::1:4444\nClient-Response-Num: 1\n\n{\"state\":\"success\",\"sessionId\":\"ea928927-bb56-460d-afde-7b5bf4b2851a\",\"hCode\":207744336,\"value\":null,\"class\":\"org.openqa.selenium.remote.Response\",\"status\":0}\n"
+   ],
+   "POST session/bfe73357-e863-402e-8b57-80e8cfa9784a/url {\"url\":\"about:config\"}" : [
+      "HTTP/1.1 200 OK\nCache-Control: no-cache\nCache-Control: no-cache\nConnection: close\nDate: Tue, 10 May 2016 19:36:50 GMT\nServer: Jetty/5.1.x (Mac OS X/10.11.4 x86_64 java/1.8.0_92\nContent-Length: 158\nContent-Type: application/json; charset=utf-8\nExpires: Thu, 01 Jan 1970 00:00:00 GMT\nExpires: Thu, 01 Jan 1970 00:00:00 GMT\nClient-Date: Tue, 10 May 2016 19:36:51 GMT\nClient-Peer: ::1:4444\nClient-Response-Num: 1\n\n{\"state\":\"success\",\"sessionId\":\"bfe73357-e863-402e-8b57-80e8cfa9784a\",\"hCode\":770087832,\"value\":null,\"class\":\"org.openqa.selenium.remote.Response\",\"status\":0}\n"
+   ],
+   "DELETE session/1bbd24b7-a9f5-42a4-ac72-495204d7aab5 {}" : [
+      "HTTP/1.1 200 OK\nCache-Control: no-cache\nCache-Control: no-cache\nConnection: close\nDate: Tue, 10 May 2016 19:36:45 GMT\nServer: Jetty/5.1.x (Mac OS X/10.11.4 x86_64 java/1.8.0_92\nContent-Length: 158\nContent-Type: application/json; charset=utf-8\nExpires: Thu, 01 Jan 1970 00:00:00 GMT\nExpires: Thu, 01 Jan 1970 00:00:00 GMT\nClient-Date: Tue, 10 May 2016 19:36:45 GMT\nClient-Peer: ::1:4444\nClient-Response-Num: 1\n\n{\"state\":\"success\",\"sessionId\":\"1bbd24b7-a9f5-42a4-ac72-495204d7aab5\",\"hCode\":708028482,\"value\":null,\"class\":\"org.openqa.selenium.remote.Response\",\"status\":0}\n"
+   ],
+   "POST session {\"desiredCapabilities\":{\"acceptSslCerts\":true,\"browserName\":\"phantomjs\",\"javascriptEnabled\":true,\"platform\":\"ANY\",\"version\":\"\"}}" : [
+      "HTTP/1.1 200 OK\nCache-Control: no-cache\nCache-Control: no-cache\nConnection: close\nDate: Tue, 10 May 2016 19:36:41 GMT\nServer: Jetty/5.1.x (Mac OS X/10.11.4 x86_64 java/1.8.0_92\nContent-Length: 672\nContent-Type: application/json; charset=utf-8\nExpires: Thu, 01 Jan 1970 00:00:00 GMT\nExpires: Thu, 01 Jan 1970 00:00:00 GMT\nClient-Date: Tue, 10 May 2016 19:36:41 GMT\nClient-Peer: ::1:4444\nClient-Response-Num: 1\n\n{\"state\":null,\"sessionId\":\"8634f902-4d7a-4920-b291-6bc1cc78f2b4\",\"hCode\":662622781,\"value\":{\"applicationCacheEnabled\":false,\"rotatable\":false,\"handlesAlerts\":false,\"databaseEnabled\":false,\"version\":\"2.1.1\",\"platform\":\"OS X 10.11\",\"browserConnectionEnabled\":false,\"proxy\":{\"proxyType\":\"direct\"},\"nativeEvents\":true,\"acceptSslCerts\":false,\"driverVersion\":\"1.2.0\",\"webdriver.remote.sessionid\":\"8634f902-4d7a-4920-b291-6bc1cc78f2b4\",\"locationContextEnabled\":false,\"webStorageEnabled\":false,\"browserName\":\"phantomjs\",\"takesScreenshot\":true,\"driverName\":\"ghostdriver\",\"javascriptEnabled\":true,\"cssSelectorsEnabled\":true},\"class\":\"org.openqa.selenium.remote.Response\",\"status\":0}\n",
+      "HTTP/1.1 200 OK\nCache-Control: no-cache\nCache-Control: no-cache\nConnection: close\nDate: Tue, 10 May 2016 19:36:46 GMT\nServer: Jetty/5.1.x (Mac OS X/10.11.4 x86_64 java/1.8.0_92\nContent-Length: 672\nContent-Type: application/json; charset=utf-8\nExpires: Thu, 01 Jan 1970 00:00:00 GMT\nExpires: Thu, 01 Jan 1970 00:00:00 GMT\nClient-Date: Tue, 10 May 2016 19:36:47 GMT\nClient-Peer: ::1:4444\nClient-Response-Num: 1\n\n{\"state\":null,\"sessionId\":\"130874ad-07d4-49b7-9564-1b671393e098\",\"hCode\":581231079,\"value\":{\"applicationCacheEnabled\":false,\"rotatable\":false,\"handlesAlerts\":false,\"databaseEnabled\":false,\"version\":\"2.1.1\",\"platform\":\"OS X 10.11\",\"browserConnectionEnabled\":false,\"proxy\":{\"proxyType\":\"direct\"},\"nativeEvents\":true,\"acceptSslCerts\":false,\"driverVersion\":\"1.2.0\",\"webdriver.remote.sessionid\":\"130874ad-07d4-49b7-9564-1b671393e098\",\"locationContextEnabled\":false,\"webStorageEnabled\":false,\"browserName\":\"phantomjs\",\"takesScreenshot\":true,\"driverName\":\"ghostdriver\",\"javascriptEnabled\":true,\"cssSelectorsEnabled\":true},\"class\":\"org.openqa.selenium.remote.Response\",\"status\":0}\n"
    ],
-   "DELETE session/0bb63c2d-038d-4b2a-84dd-ed913c0f9e7c {}" : [
-      "HTTP/1.1 200 OK\nCache-Control: no-cache\nCache-Control: no-cache\nConnection: close\nDate: Mon, 26 Jan 2015 00:39:23 GMT\nServer: Jetty/5.1.x (Mac OS X/10.10.1 x86_64 java/1.7.0_67\nContent-Length: 159\nContent-Type: application/json; charset=utf-8\nExpires: Thu, 01 Jan 1970 00:00:00 GMT\nExpires: Thu, 01 Jan 1970 00:00:00 GMT\nClient-Date: Mon, 26 Jan 2015 00:39:23 GMT\nClient-Peer: 127.0.0.1:4444\nClient-Response-Num: 1\n\n{\"sessionId\":\"0bb63c2d-038d-4b2a-84dd-ed913c0f9e7c\",\"status\":0,\"state\":\"success\",\"value\":null,\"class\":\"org.openqa.selenium.remote.Response\",\"hCode\":2132036725}\n"
+   "DELETE session/bfe73357-e863-402e-8b57-80e8cfa9784a {}" : [
+      "HTTP/1.1 200 OK\nCache-Control: no-cache\nCache-Control: no-cache\nConnection: close\nDate: Tue, 10 May 2016 19:36:51 GMT\nServer: Jetty/5.1.x (Mac OS X/10.11.4 x86_64 java/1.8.0_92\nContent-Length: 159\nContent-Type: application/json; charset=utf-8\nExpires: Thu, 01 Jan 1970 00:00:00 GMT\nExpires: Thu, 01 Jan 1970 00:00:00 GMT\nClient-Date: Tue, 10 May 2016 19:36:51 GMT\nClient-Peer: ::1:4444\nClient-Response-Num: 1\n\n{\"state\":\"success\",\"sessionId\":\"bfe73357-e863-402e-8b57-80e8cfa9784a\",\"hCode\":1091071580,\"value\":null,\"class\":\"org.openqa.selenium.remote.Response\",\"status\":0}\n"
+   ],
+   "DELETE session/5e9bc784-b12a-4d99-b65c-a0cb69eae351 {}" : [
+      "HTTP/1.1 200 OK\nCache-Control: no-cache\nCache-Control: no-cache\nConnection: close\nDate: Tue, 10 May 2016 19:36:46 GMT\nServer: Jetty/5.1.x (Mac OS X/10.11.4 x86_64 java/1.8.0_92\nContent-Length: 159\nContent-Type: application/json; charset=utf-8\nExpires: Thu, 01 Jan 1970 00:00:00 GMT\nExpires: Thu, 01 Jan 1970 00:00:00 GMT\nClient-Date: Tue, 10 May 2016 19:36:46 GMT\nClient-Peer: ::1:4444\nClient-Response-Num: 1\n\n{\"state\":\"success\",\"sessionId\":\"5e9bc784-b12a-4d99-b65c-a0cb69eae351\",\"hCode\":1650711456,\"value\":null,\"class\":\"org.openqa.selenium.remote.Response\",\"status\":0}\n"
+   ],
+   "POST session/ea928927-bb56-460d-afde-7b5bf4b2851a/url {\"url\":\"about:config\"}" : [
+      "HTTP/1.1 200 OK\nCache-Control: no-cache\nCache-Control: no-cache\nConnection: close\nDate: Tue, 10 May 2016 19:36:49 GMT\nServer: Jetty/5.1.x (Mac OS X/10.11.4 x86_64 java/1.8.0_92\nContent-Length: 158\nContent-Type: application/json; charset=utf-8\nExpires: Thu, 01 Jan 1970 00:00:00 GMT\nExpires: Thu, 01 Jan 1970 00:00:00 GMT\nClient-Date: Tue, 10 May 2016 19:36:49 GMT\nClient-Peer: ::1:4444\nClient-Response-Num: 1\n\n{\"state\":\"success\",\"sessionId\":\"ea928927-bb56-460d-afde-7b5bf4b2851a\",\"hCode\":980880172,\"value\":null,\"class\":\"org.openqa.selenium.remote.Response\",\"status\":0}\n"
+   ],
+   "POST session/130874ad-07d4-49b7-9564-1b671393e098/url {\"url\":\"about:config\"}" : [
+      "HTTP/1.1 200 OK\nCache-Control: no-cache\nCache-Control: no-cache\nConnection: close\nDate: Tue, 10 May 2016 19:36:47 GMT\nServer: Jetty/5.1.x (Mac OS X/10.11.4 x86_64 java/1.8.0_92\nContent-Length: 159\nContent-Type: application/json; charset=utf-8\nExpires: Thu, 01 Jan 1970 00:00:00 GMT\nExpires: Thu, 01 Jan 1970 00:00:00 GMT\nClient-Date: Tue, 10 May 2016 19:36:47 GMT\nClient-Peer: ::1:4444\nClient-Response-Num: 1\n\n{\"state\":\"success\",\"sessionId\":\"130874ad-07d4-49b7-9564-1b671393e098\",\"hCode\":1756139817,\"value\":null,\"class\":\"org.openqa.selenium.remote.Response\",\"status\":0}\n"
+   ],
+   "DELETE session/8634f902-4d7a-4920-b291-6bc1cc78f2b4 {}" : [
+      "HTTP/1.1 200 OK\nCache-Control: no-cache\nCache-Control: no-cache\nConnection: close\nDate: Tue, 10 May 2016 19:36:41 GMT\nServer: Jetty/5.1.x (Mac OS X/10.11.4 x86_64 java/1.8.0_92\nContent-Length: 159\nContent-Type: application/json; charset=utf-8\nExpires: Thu, 01 Jan 1970 00:00:00 GMT\nExpires: Thu, 01 Jan 1970 00:00:00 GMT\nClient-Date: Tue, 10 May 2016 19:36:42 GMT\nClient-Peer: ::1:4444\nClient-Response-Num: 1\n\n{\"state\":\"success\",\"sessionId\":\"8634f902-4d7a-4920-b291-6bc1cc78f2b4\",\"hCode\":1769692856,\"value\":null,\"class\":\"org.openqa.selenium.remote.Response\",\"status\":0}\n"
+   ],
+   "POST session {\"desiredCapabilities\":{\"acceptSslCerts\":true,\"browserName\":\"chrome\",\"javascriptEnabled\":true,\"platform\":\"ANY\",\"version\":\"\"}}" : [
+      "HTTP/1.1 200 OK\nCache-Control: no-cache\nCache-Control: no-cache\nConnection: close\nDate: Tue, 10 May 2016 19:36:45 GMT\nServer: Jetty/5.1.x (Mac OS X/10.11.4 x86_64 java/1.8.0_92\nContent-Length: 715\nContent-Type: application/json; charset=utf-8\nExpires: Thu, 01 Jan 1970 00:00:00 GMT\nExpires: Thu, 01 Jan 1970 00:00:00 GMT\nClient-Date: Tue, 10 May 2016 19:36:46 GMT\nClient-Peer: ::1:4444\nClient-Response-Num: 1\n\n{\"state\":null,\"sessionId\":\"5e9bc784-b12a-4d99-b65c-a0cb69eae351\",\"hCode\":1428494590,\"value\":{\"applicationCacheEnabled\":false,\"rotatable\":false,\"chrome\":{\"userDataDir\":\"/var/folders/5d/1_wlq6td1sb_r8nghk_r2k9rnm5bkf/T/.org.chromium.Chromium.U0vflF\"},\"takesHeapSnapshot\":true,\"databaseEnabled\":false,\"handlesAlerts\":true,\"version\":\"50.0.2661.94\",\"platform\":\"MAC\",\"browserConnectionEnabled\":false,\"nativeEvents\":true,\"acceptSslCerts\":true,\"webdriver.remote.sessionid\":\"5e9bc784-b12a-4d99-b65c-a0cb69eae351\",\"locationContextEnabled\":true,\"webStorageEnabled\":true,\"browserName\":\"chrome\",\"takesScreenshot\":true,\"javascriptEnabled\":true,\"cssSelectorsEnabled\":true},\"class\":\"org.openqa.selenium.remote.Response\",\"status\":0}\n",
+      "HTTP/1.1 200 OK\nCache-Control: no-cache\nCache-Control: no-cache\nConnection: close\nDate: Tue, 10 May 2016 19:36:49 GMT\nServer: Jetty/5.1.x (Mac OS X/10.11.4 x86_64 java/1.8.0_92\nContent-Length: 714\nContent-Type: application/json; charset=utf-8\nExpires: Thu, 01 Jan 1970 00:00:00 GMT\nExpires: Thu, 01 Jan 1970 00:00:00 GMT\nClient-Date: Tue, 10 May 2016 19:36:50 GMT\nClient-Peer: ::1:4444\nClient-Response-Num: 1\n\n{\"state\":null,\"sessionId\":\"bfe73357-e863-402e-8b57-80e8cfa9784a\",\"hCode\":779024488,\"value\":{\"applicationCacheEnabled\":false,\"rotatable\":false,\"chrome\":{\"userDataDir\":\"/var/folders/5d/1_wlq6td1sb_r8nghk_r2k9rnm5bkf/T/.org.chromium.Chromium.3qn6Ii\"},\"takesHeapSnapshot\":true,\"databaseEnabled\":false,\"handlesAlerts\":true,\"version\":\"50.0.2661.94\",\"platform\":\"MAC\",\"browserConnectionEnabled\":false,\"nativeEvents\":true,\"acceptSslCerts\":true,\"webdriver.remote.sessionid\":\"bfe73357-e863-402e-8b57-80e8cfa9784a\",\"locationContextEnabled\":true,\"webStorageEnabled\":true,\"browserName\":\"chrome\",\"takesScreenshot\":true,\"javascriptEnabled\":true,\"cssSelectorsEnabled\":true},\"class\":\"org.openqa.selenium.remote.Response\",\"status\":0}\n"
    ]
 }

+ 34 - 7
t/mock-recordings/convenience-mock-linux.json

@@ -1,14 +1,41 @@
 {
-   "DELETE session/101f1644-09ec-4501-8858-5451574cd8e3 {}" : [
-      "HTTP/1.1 200 OK\nCache-Control: no-cache\nCache-Control: no-cache\nConnection: close\nDate: Sun, 01 Feb 2015 04:25:59 GMT\nServer: Jetty/5.1.x (Linux/3.2.0-23-generic-pae i386 java/1.7.0_51\nContent-Length: 156\nContent-Type: application/json; charset=utf-8\nExpires: Thu, 01 Jan 1970 00:00:00 GMT\nExpires: Thu, 01 Jan 1970 00:00:00 GMT\nClient-Date: Sun, 01 Feb 2015 04:25:59 GMT\nClient-Peer: 127.0.0.1:4444\nClient-Response-Num: 1\n\n{\"sessionId\":\"101f1644-09ec-4501-8858-5451574cd8e3\",\"status\":0,\"state\":\"success\",\"value\":null,\"class\":\"org.openqa.selenium.remote.Response\",\"hCode\":2313854}\n"
+   "DELETE session/cdd01748-70e4-40a1-8d89-b05da140f44f {}" : [
+      "HTTP/1.1 200 OK\nCache-Control: no-cache\nCache-Control: no-cache\nConnection: close\nDate: Sat, 04 Jun 2016 22:22:20 GMT\nServer: Jetty/5.1.x (Linux/4.4.11-moby amd64 java/1.7.0_101\nContent-Length: 159\nContent-Type: application/json; charset=utf-8\nExpires: Thu, 01 Jan 1970 00:00:00 GMT\nExpires: Thu, 01 Jan 1970 00:00:00 GMT\nClient-Date: Sat, 04 Jun 2016 22:22:20 GMT\nClient-Peer: ::1:4444\nClient-Response-Num: 1\n\n{\"sessionId\":\"cdd01748-70e4-40a1-8d89-b05da140f44f\",\"status\":0,\"state\":\"success\",\"value\":null,\"class\":\"org.openqa.selenium.remote.Response\",\"hCode\":1274292338}\n"
    ],
-   "POST session {\"desiredCapabilities\":{\"acceptSslCerts\":true,\"browserName\":\"chrome\",\"javascriptEnabled\":true,\"platform\":\"ANY\",\"version\":\"\"}}" : [
-      "HTTP/1.1 200 OK\nCache-Control: no-cache\nCache-Control: no-cache\nConnection: close\nDate: Sun, 01 Feb 2015 04:25:59 GMT\nServer: Jetty/5.1.x (Linux/3.2.0-23-generic-pae i386 java/1.7.0_51\nContent-Length: 698\nContent-Type: application/json; charset=utf-8\nExpires: Thu, 01 Jan 1970 00:00:00 GMT\nExpires: Thu, 01 Jan 1970 00:00:00 GMT\nClient-Date: Sun, 01 Feb 2015 04:26:00 GMT\nClient-Peer: 127.0.0.1:4444\nClient-Response-Num: 1\n\n{\"sessionId\":\"be2c5bf8-64ab-4470-8971-6317a9822c60\",\"status\":0,\"state\":null,\"value\":{\"platform\":\"LINUX\",\"acceptSslCerts\":true,\"javascriptEnabled\":true,\"browserName\":\"chrome\",\"chrome\":{\"userDataDir\":\"/tmp/.com.google.Chrome.pJgqtA\"},\"rotatable\":false,\"locationContextEnabled\":true,\"mobileEmulationEnabled\":false,\"webdriver.remote.sessionid\":\"be2c5bf8-64ab-4470-8971-6317a9822c60\",\"version\":\"40.0.2214.94\",\"takesHeapSnapshot\":true,\"cssSelectorsEnabled\":true,\"databaseEnabled\":false,\"handlesAlerts\":true,\"browserConnectionEnabled\":false,\"nativeEvents\":true,\"webStorageEnabled\":true,\"applicationCacheEnabled\":false,\"takesScreenshot\":true},\"class\":\"org.openqa.selenium.remote.Response\",\"hCode\":21990978}\n"
+   "POST session {\"desiredCapabilities\":{\"acceptSslCerts\":true,\"browserName\":\"phantomjs\",\"javascriptEnabled\":true,\"platform\":\"ANY\",\"version\":\"\"}}" : [
+      "HTTP/1.1 200 OK\nCache-Control: no-cache\nCache-Control: no-cache\nConnection: close\nDate: Sat, 04 Jun 2016 22:22:14 GMT\nServer: Jetty/5.1.x (Linux/4.4.11-moby amd64 java/1.7.0_101\nContent-Length: 668\nContent-Type: application/json; charset=utf-8\nExpires: Thu, 01 Jan 1970 00:00:00 GMT\nExpires: Thu, 01 Jan 1970 00:00:00 GMT\nClient-Date: Sat, 04 Jun 2016 22:22:15 GMT\nClient-Peer: ::1:4444\nClient-Response-Num: 1\n\n{\"sessionId\":\"f0dba23c-9a25-4e41-8d4a-effac8a7ce90\",\"status\":0,\"state\":null,\"value\":{\"platform\":\"LINUX\",\"acceptSslCerts\":false,\"javascriptEnabled\":true,\"browserName\":\"phantomjs\",\"rotatable\":false,\"driverVersion\":\"1.2.0\",\"locationContextEnabled\":false,\"webdriver.remote.sessionid\":\"f0dba23c-9a25-4e41-8d4a-effac8a7ce90\",\"version\":\"2.1.1\",\"cssSelectorsEnabled\":true,\"databaseEnabled\":false,\"handlesAlerts\":false,\"browserConnectionEnabled\":false,\"webStorageEnabled\":false,\"nativeEvents\":true,\"proxy\":{\"proxyType\":\"direct\"},\"applicationCacheEnabled\":false,\"driverName\":\"ghostdriver\",\"takesScreenshot\":true},\"class\":\"org.openqa.selenium.remote.Response\",\"hCode\":1420193766}\n",
+      "HTTP/1.1 200 OK\nCache-Control: no-cache\nCache-Control: no-cache\nConnection: close\nDate: Sat, 04 Jun 2016 22:22:17 GMT\nServer: Jetty/5.1.x (Linux/4.4.11-moby amd64 java/1.7.0_101\nContent-Length: 668\nContent-Type: application/json; charset=utf-8\nExpires: Thu, 01 Jan 1970 00:00:00 GMT\nExpires: Thu, 01 Jan 1970 00:00:00 GMT\nClient-Date: Sat, 04 Jun 2016 22:22:17 GMT\nClient-Peer: ::1:4444\nClient-Response-Num: 1\n\n{\"sessionId\":\"01987f81-cdcb-410b-8f17-60a8d1d96161\",\"status\":0,\"state\":null,\"value\":{\"platform\":\"LINUX\",\"acceptSslCerts\":false,\"javascriptEnabled\":true,\"browserName\":\"phantomjs\",\"rotatable\":false,\"driverVersion\":\"1.2.0\",\"locationContextEnabled\":false,\"webdriver.remote.sessionid\":\"01987f81-cdcb-410b-8f17-60a8d1d96161\",\"version\":\"2.1.1\",\"cssSelectorsEnabled\":true,\"databaseEnabled\":false,\"handlesAlerts\":false,\"browserConnectionEnabled\":false,\"webStorageEnabled\":false,\"nativeEvents\":true,\"proxy\":{\"proxyType\":\"direct\"},\"applicationCacheEnabled\":false,\"driverName\":\"ghostdriver\",\"takesScreenshot\":true},\"class\":\"org.openqa.selenium.remote.Response\",\"hCode\":1314342046}\n"
+   ],
+   "POST session/8a9f9652-3ba6-494e-a0dd-a30d5815de57/url {\"url\":\"about:config\"}" : [
+      "HTTP/1.1 200 OK\nCache-Control: no-cache\nCache-Control: no-cache\nConnection: close\nDate: Sat, 04 Jun 2016 22:22:19 GMT\nServer: Jetty/5.1.x (Linux/4.4.11-moby amd64 java/1.7.0_101\nContent-Length: 159\nContent-Type: application/json; charset=utf-8\nExpires: Thu, 01 Jan 1970 00:00:00 GMT\nExpires: Thu, 01 Jan 1970 00:00:00 GMT\nClient-Date: Sat, 04 Jun 2016 22:22:19 GMT\nClient-Peer: ::1:4444\nClient-Response-Num: 1\n\n{\"sessionId\":\"8a9f9652-3ba6-494e-a0dd-a30d5815de57\",\"status\":0,\"state\":\"success\",\"value\":null,\"class\":\"org.openqa.selenium.remote.Response\",\"hCode\":1294632660}\n"
+   ],
+   "DELETE session/f0dba23c-9a25-4e41-8d4a-effac8a7ce90 {}" : [
+      "HTTP/1.1 200 OK\nCache-Control: no-cache\nCache-Control: no-cache\nConnection: close\nDate: Sat, 04 Jun 2016 22:22:15 GMT\nServer: Jetty/5.1.x (Linux/4.4.11-moby amd64 java/1.7.0_101\nContent-Length: 159\nContent-Type: application/json; charset=utf-8\nExpires: Thu, 01 Jan 1970 00:00:00 GMT\nExpires: Thu, 01 Jan 1970 00:00:00 GMT\nClient-Date: Sat, 04 Jun 2016 22:22:15 GMT\nClient-Peer: ::1:4444\nClient-Response-Num: 1\n\n{\"sessionId\":\"f0dba23c-9a25-4e41-8d4a-effac8a7ce90\",\"status\":0,\"state\":\"success\",\"value\":null,\"class\":\"org.openqa.selenium.remote.Response\",\"hCode\":1599035612}\n"
+   ],
+   "POST session/01987f81-cdcb-410b-8f17-60a8d1d96161/url {\"url\":\"about:config\"}" : [
+      "HTTP/1.1 200 OK\nCache-Control: no-cache\nCache-Control: no-cache\nConnection: close\nDate: Sat, 04 Jun 2016 22:22:17 GMT\nServer: Jetty/5.1.x (Linux/4.4.11-moby amd64 java/1.7.0_101\nContent-Length: 158\nContent-Type: application/json; charset=utf-8\nExpires: Thu, 01 Jan 1970 00:00:00 GMT\nExpires: Thu, 01 Jan 1970 00:00:00 GMT\nClient-Date: Sat, 04 Jun 2016 22:22:18 GMT\nClient-Peer: ::1:4444\nClient-Response-Num: 1\n\n{\"sessionId\":\"01987f81-cdcb-410b-8f17-60a8d1d96161\",\"status\":0,\"state\":\"success\",\"value\":null,\"class\":\"org.openqa.selenium.remote.Response\",\"hCode\":276236125}\n"
    ],
    "POST session {\"desiredCapabilities\":{\"acceptSslCerts\":true,\"browserName\":\"firefox\",\"javascriptEnabled\":true,\"platform\":\"ANY\",\"version\":\"\"}}" : [
-      "HTTP/1.1 200 OK\nCache-Control: no-cache\nCache-Control: no-cache\nConnection: close\nDate: Sun, 01 Feb 2015 04:25:57 GMT\nServer: Jetty/5.1.x (Linux/3.2.0-23-generic-pae i386 java/1.7.0_51\nContent-Length: 577\nContent-Type: application/json; charset=utf-8\nExpires: Thu, 01 Jan 1970 00:00:00 GMT\nExpires: Thu, 01 Jan 1970 00:00:00 GMT\nClient-Date: Sun, 01 Feb 2015 04:25:59 GMT\nClient-Peer: 127.0.0.1:4444\nClient-Response-Num: 1\n\n{\"sessionId\":\"101f1644-09ec-4501-8858-5451574cd8e3\",\"status\":0,\"state\":null,\"value\":{\"platform\":\"LINUX\",\"javascriptEnabled\":true,\"acceptSslCerts\":true,\"browserName\":\"firefox\",\"rotatable\":false,\"locationContextEnabled\":true,\"webdriver.remote.sessionid\":\"101f1644-09ec-4501-8858-5451574cd8e3\",\"version\":\"27.0.1\",\"databaseEnabled\":true,\"cssSelectorsEnabled\":true,\"handlesAlerts\":true,\"browserConnectionEnabled\":true,\"webStorageEnabled\":true,\"nativeEvents\":false,\"applicationCacheEnabled\":true,\"takesScreenshot\":true},\"class\":\"org.openqa.selenium.remote.Response\",\"hCode\":22283134}\n"
+      "HTTP/1.1 200 OK\nCache-Control: no-cache\nCache-Control: no-cache\nConnection: close\nDate: Sat, 04 Jun 2016 22:22:15 GMT\nServer: Jetty/5.1.x (Linux/4.4.11-moby amd64 java/1.7.0_101\nContent-Length: 547\nContent-Type: application/json; charset=utf-8\nExpires: Thu, 01 Jan 1970 00:00:00 GMT\nExpires: Thu, 01 Jan 1970 00:00:00 GMT\nClient-Date: Sat, 04 Jun 2016 22:22:16 GMT\nClient-Peer: ::1:4444\nClient-Response-Num: 1\n\n{\"sessionId\":\"17815b1b-75d4-414b-99b4-0ea0e8f42a27\",\"status\":0,\"state\":null,\"value\":{\"platform\":\"LINUX\",\"javascriptEnabled\":true,\"acceptSslCerts\":true,\"browserName\":\"firefox\",\"rotatable\":false,\"locationContextEnabled\":true,\"webdriver.remote.sessionid\":\"17815b1b-75d4-414b-99b4-0ea0e8f42a27\",\"version\":\"45.1.1\",\"databaseEnabled\":true,\"cssSelectorsEnabled\":true,\"handlesAlerts\":true,\"webStorageEnabled\":true,\"nativeEvents\":false,\"applicationCacheEnabled\":true,\"takesScreenshot\":true},\"class\":\"org.openqa.selenium.remote.Response\",\"hCode\":1656404914}\n",
+      "HTTP/1.1 200 OK\nCache-Control: no-cache\nCache-Control: no-cache\nConnection: close\nDate: Sat, 04 Jun 2016 22:22:18 GMT\nServer: Jetty/5.1.x (Linux/4.4.11-moby amd64 java/1.7.0_101\nContent-Length: 547\nContent-Type: application/json; charset=utf-8\nExpires: Thu, 01 Jan 1970 00:00:00 GMT\nExpires: Thu, 01 Jan 1970 00:00:00 GMT\nClient-Date: Sat, 04 Jun 2016 22:22:19 GMT\nClient-Peer: ::1:4444\nClient-Response-Num: 1\n\n{\"sessionId\":\"8a9f9652-3ba6-494e-a0dd-a30d5815de57\",\"status\":0,\"state\":null,\"value\":{\"platform\":\"LINUX\",\"javascriptEnabled\":true,\"acceptSslCerts\":true,\"browserName\":\"firefox\",\"rotatable\":false,\"locationContextEnabled\":true,\"webdriver.remote.sessionid\":\"8a9f9652-3ba6-494e-a0dd-a30d5815de57\",\"version\":\"45.1.1\",\"databaseEnabled\":true,\"cssSelectorsEnabled\":true,\"handlesAlerts\":true,\"webStorageEnabled\":true,\"nativeEvents\":false,\"applicationCacheEnabled\":true,\"takesScreenshot\":true},\"class\":\"org.openqa.selenium.remote.Response\",\"hCode\":1391442623}\n"
+   ],
+   "DELETE session/17815b1b-75d4-414b-99b4-0ea0e8f42a27 {}" : [
+      "HTTP/1.1 200 OK\nCache-Control: no-cache\nCache-Control: no-cache\nConnection: close\nDate: Sat, 04 Jun 2016 22:22:16 GMT\nServer: Jetty/5.1.x (Linux/4.4.11-moby amd64 java/1.7.0_101\nContent-Length: 158\nContent-Type: application/json; charset=utf-8\nExpires: Thu, 01 Jan 1970 00:00:00 GMT\nExpires: Thu, 01 Jan 1970 00:00:00 GMT\nClient-Date: Sat, 04 Jun 2016 22:22:16 GMT\nClient-Peer: ::1:4444\nClient-Response-Num: 1\n\n{\"sessionId\":\"17815b1b-75d4-414b-99b4-0ea0e8f42a27\",\"status\":0,\"state\":\"success\",\"value\":null,\"class\":\"org.openqa.selenium.remote.Response\",\"hCode\":401822801}\n"
+   ],
+   "DELETE session/8a9f9652-3ba6-494e-a0dd-a30d5815de57 {}" : [
+      "HTTP/1.1 200 OK\nCache-Control: no-cache\nCache-Control: no-cache\nConnection: close\nDate: Sat, 04 Jun 2016 22:22:19 GMT\nServer: Jetty/5.1.x (Linux/4.4.11-moby amd64 java/1.7.0_101\nContent-Length: 158\nContent-Type: application/json; charset=utf-8\nExpires: Thu, 01 Jan 1970 00:00:00 GMT\nExpires: Thu, 01 Jan 1970 00:00:00 GMT\nClient-Date: Sat, 04 Jun 2016 22:22:19 GMT\nClient-Peer: ::1:4444\nClient-Response-Num: 1\n\n{\"sessionId\":\"8a9f9652-3ba6-494e-a0dd-a30d5815de57\",\"status\":0,\"state\":\"success\",\"value\":null,\"class\":\"org.openqa.selenium.remote.Response\",\"hCode\":385212682}\n"
+   ],
+   "POST session/cdd01748-70e4-40a1-8d89-b05da140f44f/url {\"url\":\"about:config\"}" : [
+      "HTTP/1.1 200 OK\nCache-Control: no-cache\nCache-Control: no-cache\nConnection: close\nDate: Sat, 04 Jun 2016 22:22:20 GMT\nServer: Jetty/5.1.x (Linux/4.4.11-moby amd64 java/1.7.0_101\nContent-Length: 159\nContent-Type: application/json; charset=utf-8\nExpires: Thu, 01 Jan 1970 00:00:00 GMT\nExpires: Thu, 01 Jan 1970 00:00:00 GMT\nClient-Date: Sat, 04 Jun 2016 22:22:20 GMT\nClient-Peer: ::1:4444\nClient-Response-Num: 1\n\n{\"sessionId\":\"cdd01748-70e4-40a1-8d89-b05da140f44f\",\"status\":0,\"state\":\"success\",\"value\":null,\"class\":\"org.openqa.selenium.remote.Response\",\"hCode\":1212862835}\n"
+   ],
+   "DELETE session/01987f81-cdcb-410b-8f17-60a8d1d96161 {}" : [
+      "HTTP/1.1 200 OK\nCache-Control: no-cache\nCache-Control: no-cache\nConnection: close\nDate: Sat, 04 Jun 2016 22:22:18 GMT\nServer: Jetty/5.1.x (Linux/4.4.11-moby amd64 java/1.7.0_101\nContent-Length: 158\nContent-Type: application/json; charset=utf-8\nExpires: Thu, 01 Jan 1970 00:00:00 GMT\nExpires: Thu, 01 Jan 1970 00:00:00 GMT\nClient-Date: Sat, 04 Jun 2016 22:22:18 GMT\nClient-Peer: ::1:4444\nClient-Response-Num: 1\n\n{\"sessionId\":\"01987f81-cdcb-410b-8f17-60a8d1d96161\",\"status\":0,\"state\":\"success\",\"value\":null,\"class\":\"org.openqa.selenium.remote.Response\",\"hCode\":126522200}\n"
+   ],
+   "POST session {\"desiredCapabilities\":{\"acceptSslCerts\":true,\"browserName\":\"chrome\",\"javascriptEnabled\":true,\"platform\":\"ANY\",\"version\":\"\"}}" : [
+      "HTTP/1.1 200 OK\nCache-Control: no-cache\nCache-Control: no-cache\nConnection: close\nDate: Sat, 04 Jun 2016 22:22:17 GMT\nServer: Jetty/5.1.x (Linux/4.4.11-moby amd64 java/1.7.0_101\nContent-Length: 802\nContent-Type: application/json; charset=utf-8\nExpires: Thu, 01 Jan 1970 00:00:00 GMT\nExpires: Thu, 01 Jan 1970 00:00:00 GMT\nClient-Date: Sat, 04 Jun 2016 22:22:17 GMT\nClient-Peer: ::1:4444\nClient-Response-Num: 1\n\n{\"sessionId\":\"f1604c5e-6513-4c5c-8a10-1fa723f27ef8\",\"status\":0,\"state\":null,\"value\":{\"platform\":\"LINUX\",\"acceptSslCerts\":true,\"javascriptEnabled\":true,\"browserName\":\"chrome\",\"chrome\":{\"userDataDir\":\"/tmp/.com.google.Chrome.1jmKJv\",\"chromedriverVersion\":\"2.21.371461 (633e689b520b25f3e264a2ede6b74ccc23cb636a)\"},\"rotatable\":false,\"locationContextEnabled\":true,\"mobileEmulationEnabled\":false,\"webdriver.remote.sessionid\":\"f1604c5e-6513-4c5c-8a10-1fa723f27ef8\",\"version\":\"51.0.2704.79\",\"takesHeapSnapshot\":true,\"cssSelectorsEnabled\":true,\"databaseEnabled\":false,\"handlesAlerts\":true,\"browserConnectionEnabled\":false,\"nativeEvents\":true,\"webStorageEnabled\":true,\"hasTouchScreen\":false,\"applicationCacheEnabled\":false,\"takesScreenshot\":true},\"class\":\"org.openqa.selenium.remote.Response\",\"hCode\":1312629976}\n",
+      "HTTP/1.1 200 OK\nCache-Control: no-cache\nCache-Control: no-cache\nConnection: close\nDate: Sat, 04 Jun 2016 22:22:19 GMT\nServer: Jetty/5.1.x (Linux/4.4.11-moby amd64 java/1.7.0_101\nContent-Length: 802\nContent-Type: application/json; charset=utf-8\nExpires: Thu, 01 Jan 1970 00:00:00 GMT\nExpires: Thu, 01 Jan 1970 00:00:00 GMT\nClient-Date: Sat, 04 Jun 2016 22:22:20 GMT\nClient-Peer: ::1:4444\nClient-Response-Num: 1\n\n{\"sessionId\":\"cdd01748-70e4-40a1-8d89-b05da140f44f\",\"status\":0,\"state\":null,\"value\":{\"platform\":\"LINUX\",\"acceptSslCerts\":true,\"javascriptEnabled\":true,\"browserName\":\"chrome\",\"chrome\":{\"userDataDir\":\"/tmp/.com.google.Chrome.7cwAFE\",\"chromedriverVersion\":\"2.21.371461 (633e689b520b25f3e264a2ede6b74ccc23cb636a)\"},\"rotatable\":false,\"locationContextEnabled\":true,\"mobileEmulationEnabled\":false,\"webdriver.remote.sessionid\":\"cdd01748-70e4-40a1-8d89-b05da140f44f\",\"version\":\"51.0.2704.79\",\"takesHeapSnapshot\":true,\"cssSelectorsEnabled\":true,\"databaseEnabled\":false,\"handlesAlerts\":true,\"browserConnectionEnabled\":false,\"nativeEvents\":true,\"webStorageEnabled\":true,\"hasTouchScreen\":false,\"applicationCacheEnabled\":false,\"takesScreenshot\":true},\"class\":\"org.openqa.selenium.remote.Response\",\"hCode\":1971981169}\n"
    ],
-   "DELETE session/be2c5bf8-64ab-4470-8971-6317a9822c60 {}" : [
-      "HTTP/1.1 200 OK\nCache-Control: no-cache\nCache-Control: no-cache\nConnection: close\nDate: Sun, 01 Feb 2015 04:26:00 GMT\nServer: Jetty/5.1.x (Linux/3.2.0-23-generic-pae i386 java/1.7.0_51\nContent-Length: 157\nContent-Type: application/json; charset=utf-8\nExpires: Thu, 01 Jan 1970 00:00:00 GMT\nExpires: Thu, 01 Jan 1970 00:00:00 GMT\nClient-Date: Sun, 01 Feb 2015 04:26:01 GMT\nClient-Peer: 127.0.0.1:4444\nClient-Response-Num: 1\n\n{\"sessionId\":\"be2c5bf8-64ab-4470-8971-6317a9822c60\",\"status\":0,\"state\":\"success\",\"value\":null,\"class\":\"org.openqa.selenium.remote.Response\",\"hCode\":16791543}\n"
+   "DELETE session/f1604c5e-6513-4c5c-8a10-1fa723f27ef8 {}" : [
+      "HTTP/1.1 200 OK\nCache-Control: no-cache\nCache-Control: no-cache\nConnection: close\nDate: Sat, 04 Jun 2016 22:22:17 GMT\nServer: Jetty/5.1.x (Linux/4.4.11-moby amd64 java/1.7.0_101\nContent-Length: 159\nContent-Type: application/json; charset=utf-8\nExpires: Thu, 01 Jan 1970 00:00:00 GMT\nExpires: Thu, 01 Jan 1970 00:00:00 GMT\nClient-Date: Sat, 04 Jun 2016 22:22:17 GMT\nClient-Peer: ::1:4444\nClient-Response-Num: 1\n\n{\"sessionId\":\"f1604c5e-6513-4c5c-8a10-1fa723f27ef8\",\"status\":0,\"state\":\"success\",\"value\":null,\"class\":\"org.openqa.selenium.remote.Response\",\"hCode\":1962210199}\n"
    ]
 }