diff --git a/README.markdown b/README.markdown old mode 100755 new mode 100644 index 48494cf..e7d191c --- a/README.markdown +++ b/README.markdown @@ -92,7 +92,7 @@ Plain API :port => 4444, :browser => "*firefox", :url => "http://www.google.com", - :timeout_in_second => 60 + :timeout_in_seconds => 60 @browser.start_new_browser_session @browser.open "/" @@ -128,7 +128,7 @@ Writing Tests :port => 4444, :browser => "*firefox", :url => "http://www.google.com", - :timeout_in_second => 60 + :timeout_in_seconds => 60 browser.start_new_browser_session end @@ -168,7 +168,7 @@ Writing Tests :port => 4444, :browser => "*firefox", :url => "http://www.google.com", - :timeout_in_second => 60 + :timeout_in_seconds => 60 end before(:each) do diff --git a/lib/selenium/client/protocol.rb b/lib/selenium/client/protocol.rb index 5e4f426..67374c4 100644 --- a/lib/selenium/client/protocol.rb +++ b/lib/selenium/client/protocol.rb @@ -87,14 +87,6 @@ def http_post(data) http.open_timeout = default_timeout_in_seconds http.read_timeout = default_timeout_in_seconds response = http.post('/selenium-server/driver/', data, HTTP_HEADERS) - if response.body !~ /^OK/ - puts "#{start} selenium-client received failure from selenium server:" - puts "requested:" - puts "\t" + CGI::unescape(data.split('&').join("\n\t")) - puts "received:" - puts "\t#{response.body.inspect}" - puts "\tcalled from #{called_from}" - end [ response.body[0..1], response.body ] end