1
0
Emmanuel Peroumalnaik 11 жил өмнө
parent
commit
02d675e115

+ 30 - 4
t/10-switch-to-window.t

@@ -4,16 +4,39 @@ use 5.010;
 
 use Test::More;
 use Test::Selenium::Remote::Driver;
+use Selenium::Remote::Mock::RemoteConnection;
 
-if (not Test::Selenium::Remote::Driver->server_is_running()) {
-    plan skip_all => 'The Selenium server must be running for this test';
+my $record = (defined $ENV{'WD_MOCKING_RECORD'} && ($ENV{'WD_MOCKING_RECORD'}==1))?1:0;
+my $os  = $^O;
+if ($os =~ m/(aix|freebsd|openbsd|sunos|solaris)/) {
+    $os = 'linux';
 }
 
+my %selenium_args = ( 
+    browser_name => 'firefox',
+    default_finder => 'css',
+    javascript     => 1,
+);
+
+my $mock_file = "10-switch-to-window-mock-$os.json";
+if (!$record && !(-e "t/mock-recordings/$mock_file")) {
+    plan skip_all => "Mocking of tests is not been enabled for this platform";
+}
+
+if ($record) { 
+    $selenium_args{remote_conn} = Selenium::Remote::Mock::RemoteConnection->new(record => 1);
+}
+else { 
+    $selenium_args{remote_conn} =
+      Selenium::Remote::Mock::RemoteConnection->new( replay => 1,
+        replay_file => "t/mock-recordings/$mock_file" );
+}
+
+
 plan tests => 9;
 
 my $s = Test::Selenium::Remote::Driver->new(
-    default_finder => 'css',
-    javascript     => 1,
+    %selenium_args
 );
 
 my $perl_title = 'The Perl Programming Language - www.perl.org';
@@ -49,3 +72,6 @@ $s->title_is($cpan_title);
 $s->switch_to_window('perlorg');
 $s->title_is($perl_title);
 
+if ($record) { 
+    $s->remote_conn->dump_session_store("t/mock-recordings/$mock_file");
+}

+ 30 - 5
t/Test-Selenium-Remote-Driver-google.t

@@ -3,19 +3,44 @@ use strict;
 use warnings;
 use Test::More;
 use Test::Selenium::Remote::Driver;
+use Selenium::Remote::Mock::RemoteConnection;
 
-my ($host, $port) = Test::Selenium::Remote::Driver->server_is_running;
-unless ($host and $port) {
-    plan skip_all => "No Webdriver server found!";
-    exit 0;
+my $record = (defined $ENV{'WD_MOCKING_RECORD'} && ($ENV{'WD_MOCKING_RECORD'}==1))?1:0;
+my $os  = $^O;
+if ($os =~ m/(aix|freebsd|openbsd|sunos|solaris)/) {
+    $os = 'linux';
+}
+
+my %selenium_args = ( 
+    browser_name => 'firefox',
+    javascript => 1
+);
+
+my $mock_file = "test-selenium-remote-driver-google-$os.json";
+if (!$record && !(-e "t/mock-recordings/$mock_file")) {
+    plan skip_all => "Mocking of tests is not been enabled for this platform";
+}
+
+if ($record) { 
+    $selenium_args{remote_conn} = Selenium::Remote::Mock::RemoteConnection->new(record => 1);
+}
+else { 
+    $selenium_args{remote_conn} =
+      Selenium::Remote::Mock::RemoteConnection->new( replay => 1,
+        replay_file => "t/mock-recordings/$mock_file" );
 }
 
 # Try to find
 my $t = Test::Selenium::Remote::Driver->new(
-    remote_server_addr => $host, port => $port,
+    %selenium_args
 );
 $t->get_ok('http://www.google.com');
 $t->title_like(qr/Google/);
 $t->body_like(qr/Google/);
 
+if ($record) { 
+    $t->remote_conn->dump_session_store("t/mock-recordings/$mock_file");
+}
+
+
 done_testing();

+ 38 - 0
t/mock-recordings/10-switch-to-window-mock-linux.json

@@ -0,0 +1,38 @@
+{
+   "POST session/c69d1323-7c68-4704-b9f8-f36233a40e73/execute {\"script\":\"return window.name = 'perlorg';\",\"args\":[]}" : [
+      "HTTP/1.1 200 OK\nCache-Control: no-cache\nCache-Control: no-cache\nConnection: close\nDate: Thu, 16 Oct 2014 12:48:44 GMT\nServer: Jetty/5.1.x (Linux/3.13.0-34-generic amd64 java/1.6.0_32\nContent-Length: 164\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: Thu, 16 Oct 2014 12:48:44 GMT\nClient-Peer: 127.0.0.1:4444\nClient-Response-Num: 1\n\n{\"status\":0,\"sessionId\":\"c69d1323-7c68-4704-b9f8-f36233a40e73\",\"value\":\"perlorg\",\"state\":\"success\",\"class\":\"org.openqa.selenium.remote.Response\",\"hCode\":2129209119}\n"
+   ],
+   "POST session {\"desiredCapabilities\":{\"browserName\":\"firefox\",\"acceptSslCerts\":true,\"version\":null,\"javascriptEnabled\":true,\"platform\":\"ANY\"}}" : [
+      "HTTP/1.1 200 OK\nCache-Control: no-cache\nCache-Control: no-cache\nConnection: close\nDate: Thu, 16 Oct 2014 12:48:39 GMT\nServer: Jetty/5.1.x (Linux/3.13.0-34-generic amd64 java/1.6.0_32\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: Thu, 16 Oct 2014 12:48:42 GMT\nClient-Peer: 127.0.0.1:4444\nClient-Response-Num: 1\n\n{\"status\":0,\"sessionId\":\"c69d1323-7c68-4704-b9f8-f36233a40e73\",\"value\":{\"platform\":\"LINUX\",\"acceptSslCerts\":true,\"javascriptEnabled\":true,\"browserName\":\"firefox\",\"rotatable\":false,\"locationContextEnabled\":true,\"webdriver.remote.sessionid\":\"c69d1323-7c68-4704-b9f8-f36233a40e73\",\"version\":\"33.0\",\"cssSelectorsEnabled\":true,\"databaseEnabled\":true,\"handlesAlerts\":true,\"nativeEvents\":false,\"webStorageEnabled\":true,\"applicationCacheEnabled\":true,\"takesScreenshot\":true},\"state\":null,\"class\":\"org.openqa.selenium.remote.Response\",\"hCode\":846918355}\n"
+   ],
+   "POST session/c69d1323-7c68-4704-b9f8-f36233a40e73/window {\"name\":\"cpanorg\"}" : [
+      "HTTP/1.1 200 OK\nCache-Control: no-cache\nCache-Control: no-cache\nConnection: close\nDate: Thu, 16 Oct 2014 12:48:45 GMT\nServer: Jetty/5.1.x (Linux/3.13.0-34-generic amd64 java/1.6.0_32\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: Thu, 16 Oct 2014 12:48:45 GMT\nClient-Peer: 127.0.0.1:4444\nClient-Response-Num: 1\n\n{\"status\":0,\"sessionId\":\"c69d1323-7c68-4704-b9f8-f36233a40e73\",\"value\":null,\"state\":\"success\",\"class\":\"org.openqa.selenium.remote.Response\",\"hCode\":2115896650}\n"
+   ],
+   "POST session/c69d1323-7c68-4704-b9f8-f36233a40e73/execute {\"script\":\"$(window.open('http://cpan.org/', 'cpanorg'))\",\"args\":[]}" : [
+      "HTTP/1.1 200 OK\nCache-Control: no-cache\nCache-Control: no-cache\nConnection: close\nDate: Thu, 16 Oct 2014 12:48:44 GMT\nServer: Jetty/5.1.x (Linux/3.13.0-34-generic amd64 java/1.6.0_32\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: Thu, 16 Oct 2014 12:48:45 GMT\nClient-Peer: 127.0.0.1:4444\nClient-Response-Num: 1\n\n{\"status\":0,\"sessionId\":\"c69d1323-7c68-4704-b9f8-f36233a40e73\",\"value\":null,\"state\":\"success\",\"class\":\"org.openqa.selenium.remote.Response\",\"hCode\":16148305}\n"
+   ],
+   "POST session/c69d1323-7c68-4704-b9f8-f36233a40e73/window {\"name\":\"perlorg\"}" : [
+      "HTTP/1.1 200 OK\nCache-Control: no-cache\nCache-Control: no-cache\nConnection: close\nDate: Thu, 16 Oct 2014 12:48:45 GMT\nServer: Jetty/5.1.x (Linux/3.13.0-34-generic amd64 java/1.6.0_32\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: Thu, 16 Oct 2014 12:48:45 GMT\nClient-Peer: 127.0.0.1:4444\nClient-Response-Num: 1\n\n{\"status\":0,\"sessionId\":\"c69d1323-7c68-4704-b9f8-f36233a40e73\",\"value\":null,\"state\":\"success\",\"class\":\"org.openqa.selenium.remote.Response\",\"hCode\":1414943481}\n"
+   ],
+   "GET session/c69d1323-7c68-4704-b9f8-f36233a40e73/title {}" : [
+      "HTTP/1.1 200 OK\nCache-Control: no-cache\nCache-Control: no-cache\nConnection: close\nDate: Thu, 16 Oct 2014 12:48:44 GMT\nServer: Jetty/5.1.x (Linux/3.13.0-34-generic amd64 java/1.6.0_32\nContent-Length: 200\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: Thu, 16 Oct 2014 12:48:44 GMT\nClient-Peer: 127.0.0.1:4444\nClient-Response-Num: 1\n\n{\"status\":0,\"sessionId\":\"c69d1323-7c68-4704-b9f8-f36233a40e73\",\"value\":\"The Perl Programming Language - www.perl.org\",\"state\":\"success\",\"class\":\"org.openqa.selenium.remote.Response\",\"hCode\":659296406}\n",
+      "HTTP/1.1 200 OK\nCache-Control: no-cache\nCache-Control: no-cache\nConnection: close\nDate: Thu, 16 Oct 2014 12:48:45 GMT\nServer: Jetty/5.1.x (Linux/3.13.0-34-generic amd64 java/1.6.0_32\nContent-Length: 200\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: Thu, 16 Oct 2014 12:48:45 GMT\nClient-Peer: 127.0.0.1:4444\nClient-Response-Num: 1\n\n{\"status\":0,\"sessionId\":\"c69d1323-7c68-4704-b9f8-f36233a40e73\",\"value\":\"The Perl Programming Language - www.perl.org\",\"state\":\"success\",\"class\":\"org.openqa.selenium.remote.Response\",\"hCode\":691406481}\n",
+      "HTTP/1.1 200 OK\nCache-Control: no-cache\nCache-Control: no-cache\nConnection: close\nDate: Thu, 16 Oct 2014 12:48:45 GMT\nServer: Jetty/5.1.x (Linux/3.13.0-34-generic amd64 java/1.6.0_32\nContent-Length: 210\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: Thu, 16 Oct 2014 12:48:45 GMT\nClient-Peer: 127.0.0.1:4444\nClient-Response-Num: 1\n\n{\"status\":0,\"sessionId\":\"c69d1323-7c68-4704-b9f8-f36233a40e73\",\"value\":\"The Comprehensive Perl Archive Network - www.cpan.org\",\"state\":\"success\",\"class\":\"org.openqa.selenium.remote.Response\",\"hCode\":1077453232}\n",
+      "HTTP/1.1 200 OK\nCache-Control: no-cache\nCache-Control: no-cache\nConnection: close\nDate: Thu, 16 Oct 2014 12:48:45 GMT\nServer: Jetty/5.1.x (Linux/3.13.0-34-generic amd64 java/1.6.0_32\nContent-Length: 201\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: Thu, 16 Oct 2014 12:48:45 GMT\nClient-Peer: 127.0.0.1:4444\nClient-Response-Num: 1\n\n{\"status\":0,\"sessionId\":\"c69d1323-7c68-4704-b9f8-f36233a40e73\",\"value\":\"The Perl Programming Language - www.perl.org\",\"state\":\"success\",\"class\":\"org.openqa.selenium.remote.Response\",\"hCode\":2143503954}\n",
+      "HTTP/1.1 200 OK\nCache-Control: no-cache\nCache-Control: no-cache\nConnection: close\nDate: Thu, 16 Oct 2014 12:48:45 GMT\nServer: Jetty/5.1.x (Linux/3.13.0-34-generic amd64 java/1.6.0_32\nContent-Length: 209\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: Thu, 16 Oct 2014 12:48:45 GMT\nClient-Peer: 127.0.0.1:4444\nClient-Response-Num: 1\n\n{\"status\":0,\"sessionId\":\"c69d1323-7c68-4704-b9f8-f36233a40e73\",\"value\":\"The Comprehensive Perl Archive Network - www.cpan.org\",\"state\":\"success\",\"class\":\"org.openqa.selenium.remote.Response\",\"hCode\":602444695}\n",
+      "HTTP/1.1 200 OK\nCache-Control: no-cache\nCache-Control: no-cache\nConnection: close\nDate: Thu, 16 Oct 2014 12:48:45 GMT\nServer: Jetty/5.1.x (Linux/3.13.0-34-generic amd64 java/1.6.0_32\nContent-Length: 201\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: Thu, 16 Oct 2014 12:48:45 GMT\nClient-Peer: 127.0.0.1:4444\nClient-Response-Num: 1\n\n{\"status\":0,\"sessionId\":\"c69d1323-7c68-4704-b9f8-f36233a40e73\",\"value\":\"The Perl Programming Language - www.perl.org\",\"state\":\"success\",\"class\":\"org.openqa.selenium.remote.Response\",\"hCode\":1800304624}\n"
+   ],
+   "GET session/c69d1323-7c68-4704-b9f8-f36233a40e73/window_handles {}" : [
+      "HTTP/1.1 200 OK\nCache-Control: no-cache\nCache-Control: no-cache\nConnection: close\nDate: Thu, 16 Oct 2014 12:48:44 GMT\nServer: Jetty/5.1.x (Linux/3.13.0-34-generic amd64 java/1.6.0_32\nContent-Length: 197\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: Thu, 16 Oct 2014 12:48:44 GMT\nClient-Peer: 127.0.0.1:4444\nClient-Response-Num: 1\n\n{\"status\":0,\"sessionId\":\"c69d1323-7c68-4704-b9f8-f36233a40e73\",\"value\":[\"{0afb6908-f177-4ff8-9c64-2c109d5f49a7}\"],\"state\":\"success\",\"class\":\"org.openqa.selenium.remote.Response\",\"hCode\":2095898764}\n",
+      "HTTP/1.1 200 OK\nCache-Control: no-cache\nCache-Control: no-cache\nConnection: close\nDate: Thu, 16 Oct 2014 12:48:45 GMT\nServer: Jetty/5.1.x (Linux/3.13.0-34-generic amd64 java/1.6.0_32\nContent-Length: 237\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: Thu, 16 Oct 2014 12:48:45 GMT\nClient-Peer: 127.0.0.1:4444\nClient-Response-Num: 1\n\n{\"status\":0,\"sessionId\":\"c69d1323-7c68-4704-b9f8-f36233a40e73\",\"value\":[\"{0afb6908-f177-4ff8-9c64-2c109d5f49a7}\",\"{0efebfcd-2505-4624-85ff-cb4f4b2b49f5}\"],\"state\":\"success\",\"class\":\"org.openqa.selenium.remote.Response\",\"hCode\":469418656}\n"
+   ],
+   "POST session/c69d1323-7c68-4704-b9f8-f36233a40e73/window {\"name\":\"{0efebfcd-2505-4624-85ff-cb4f4b2b49f5}\"}" : [
+      "HTTP/1.1 200 OK\nCache-Control: no-cache\nCache-Control: no-cache\nConnection: close\nDate: Thu, 16 Oct 2014 12:48:45 GMT\nServer: Jetty/5.1.x (Linux/3.13.0-34-generic amd64 java/1.6.0_32\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: Thu, 16 Oct 2014 12:48:45 GMT\nClient-Peer: 127.0.0.1:4444\nClient-Response-Num: 1\n\n{\"status\":0,\"sessionId\":\"c69d1323-7c68-4704-b9f8-f36233a40e73\",\"value\":null,\"state\":\"success\",\"class\":\"org.openqa.selenium.remote.Response\",\"hCode\":1553442067}\n"
+   ],
+   "POST session/c69d1323-7c68-4704-b9f8-f36233a40e73/window {\"name\":\"{0afb6908-f177-4ff8-9c64-2c109d5f49a7}\"}" : [
+      "HTTP/1.1 200 OK\nCache-Control: no-cache\nCache-Control: no-cache\nConnection: close\nDate: Thu, 16 Oct 2014 12:48:45 GMT\nServer: Jetty/5.1.x (Linux/3.13.0-34-generic amd64 java/1.6.0_32\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: Thu, 16 Oct 2014 12:48:45 GMT\nClient-Peer: 127.0.0.1:4444\nClient-Response-Num: 1\n\n{\"status\":0,\"sessionId\":\"c69d1323-7c68-4704-b9f8-f36233a40e73\",\"value\":null,\"state\":\"success\",\"class\":\"org.openqa.selenium.remote.Response\",\"hCode\":2072291110}\n"
+   ],
+   "POST session/c69d1323-7c68-4704-b9f8-f36233a40e73/url {\"url\":\"http://perl.org/\"}" : [
+      "HTTP/1.1 200 OK\nCache-Control: no-cache\nCache-Control: no-cache\nConnection: close\nDate: Thu, 16 Oct 2014 12:48:42 GMT\nServer: Jetty/5.1.x (Linux/3.13.0-34-generic amd64 java/1.6.0_32\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: Thu, 16 Oct 2014 12:48:44 GMT\nClient-Peer: 127.0.0.1:4444\nClient-Response-Num: 1\n\n{\"status\":0,\"sessionId\":\"c69d1323-7c68-4704-b9f8-f36233a40e73\",\"value\":null,\"state\":\"success\",\"class\":\"org.openqa.selenium.remote.Response\",\"hCode\":1079459563}\n"
+   ]
+}

+ 17 - 0
t/mock-recordings/test-selenium-remote-driver-google-linux.json

@@ -0,0 +1,17 @@
+{
+   "GET session/98271471-4615-417d-94b5-1435e4b60f7a/element/0/text {}" : [
+      "HTTP/1.1 200 OK\nCache-Control: no-cache\nCache-Control: no-cache\nConnection: close\nDate: Thu, 16 Oct 2014 12:54:03 GMT\nServer: Jetty/5.1.x (Linux/3.13.0-34-generic amd64 java/1.6.0_32\nContent-Length: 487\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: Thu, 16 Oct 2014 12:54:03 GMT\nClient-Peer: 127.0.0.1:4444\nClient-Response-Num: 1\n\n{\"status\":0,\"sessionId\":\"98271471-4615-417d-94b5-1435e4b60f7a\",\"value\":\"+Vous\\nGmail\\nImages\\nConnexion\\nRecherche GoogleJ'ai de la chance\\nFrance\\nConfidentialité et conditions d'utilisation Paramètres\\nUtiliser Google.com\\nPublicité Entreprise À propos\\nLes cookies assurent le bon fonctionnement de nos services. En utilisant ces derniers, vous acceptez l'utilisation des cookies.En savoir plusOK\",\"state\":\"success\",\"class\":\"org.openqa.selenium.remote.Response\",\"hCode\":513105193}\n"
+   ],
+   "POST session/98271471-4615-417d-94b5-1435e4b60f7a/element {\"value\":\"//body\",\"using\":\"xpath\"}" : [
+      "HTTP/1.1 200 OK\nCache-Control: no-cache\nCache-Control: no-cache\nConnection: close\nDate: Thu, 16 Oct 2014 12:54:03 GMT\nServer: Jetty/5.1.x (Linux/3.13.0-34-generic amd64 java/1.6.0_32\nContent-Length: 170\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: Thu, 16 Oct 2014 12:54:03 GMT\nClient-Peer: 127.0.0.1:4444\nClient-Response-Num: 1\n\n{\"status\":0,\"sessionId\":\"98271471-4615-417d-94b5-1435e4b60f7a\",\"value\":{\"ELEMENT\":\"0\"},\"state\":\"success\",\"class\":\"org.openqa.selenium.remote.Response\",\"hCode\":1253722847}\n"
+   ],
+   "GET session/98271471-4615-417d-94b5-1435e4b60f7a/title {}" : [
+      "HTTP/1.1 200 OK\nCache-Control: no-cache\nCache-Control: no-cache\nConnection: close\nDate: Thu, 16 Oct 2014 12:54:03 GMT\nServer: Jetty/5.1.x (Linux/3.13.0-34-generic amd64 java/1.6.0_32\nContent-Length: 162\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: Thu, 16 Oct 2014 12:54:03 GMT\nClient-Peer: 127.0.0.1:4444\nClient-Response-Num: 1\n\n{\"status\":0,\"sessionId\":\"98271471-4615-417d-94b5-1435e4b60f7a\",\"value\":\"Google\",\"state\":\"success\",\"class\":\"org.openqa.selenium.remote.Response\",\"hCode\":501133298}\n"
+   ],
+   "POST session {\"desiredCapabilities\":{\"browserName\":\"firefox\",\"acceptSslCerts\":true,\"version\":null,\"javascriptEnabled\":true,\"platform\":\"ANY\"}}" : [
+      "HTTP/1.1 200 OK\nCache-Control: no-cache\nCache-Control: no-cache\nConnection: close\nDate: Thu, 16 Oct 2014 12:53:58 GMT\nServer: Jetty/5.1.x (Linux/3.13.0-34-generic amd64 java/1.6.0_32\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: Thu, 16 Oct 2014 12:54:01 GMT\nClient-Peer: 127.0.0.1:4444\nClient-Response-Num: 1\n\n{\"status\":0,\"sessionId\":\"98271471-4615-417d-94b5-1435e4b60f7a\",\"value\":{\"platform\":\"LINUX\",\"acceptSslCerts\":true,\"javascriptEnabled\":true,\"browserName\":\"firefox\",\"rotatable\":false,\"locationContextEnabled\":true,\"webdriver.remote.sessionid\":\"98271471-4615-417d-94b5-1435e4b60f7a\",\"version\":\"33.0\",\"cssSelectorsEnabled\":true,\"databaseEnabled\":true,\"handlesAlerts\":true,\"nativeEvents\":false,\"webStorageEnabled\":true,\"applicationCacheEnabled\":true,\"takesScreenshot\":true},\"state\":null,\"class\":\"org.openqa.selenium.remote.Response\",\"hCode\":122418027}\n"
+   ],
+   "POST session/98271471-4615-417d-94b5-1435e4b60f7a/url {\"url\":\"http://www.google.com\"}" : [
+      "HTTP/1.1 200 OK\nCache-Control: no-cache\nCache-Control: no-cache\nConnection: close\nDate: Thu, 16 Oct 2014 12:54:01 GMT\nServer: Jetty/5.1.x (Linux/3.13.0-34-generic amd64 java/1.6.0_32\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: Thu, 16 Oct 2014 12:54:03 GMT\nClient-Peer: 127.0.0.1:4444\nClient-Response-Num: 1\n\n{\"status\":0,\"sessionId\":\"98271471-4615-417d-94b5-1435e4b60f7a\",\"value\":null,\"state\":\"success\",\"class\":\"org.openqa.selenium.remote.Response\",\"hCode\":1074666111}\n"
+   ]
+}